justinmind-logo
 
Upvote 1

Dragging object inside a dynamic panel prevents the object from hiding when switching active panel

Solved Victor Conesa 8 years ago

Hi there,


I have a dynamic panel with two layers. Each layer contains a button to switch to the other layer.


The first layer also contains a rectangle, which can be dragged (using "on Drag", "Move", and "With cursor).


Switching layers works fine, but just until you drag the rectangle. Once the rectangle has been dragged, the rectangle does not disappear when switching to the second layer. It always stays on the screen.


Seems to be a bug?


Thanks,


Dominik

Replies (2)
photo
1

Hi again,


I think I figured it out: apparently, the dragged component gets detached from it its container (which makes sense, but is not obvious at first). Therefore, it needs to be re-inserted once the drag is complete.


Simply adding a "Insert into" action on "Drag End" solves this :)!


Dominik

photo
1

You are right!


Best,


Sonia Durán

Leave a Comment
 
Attach a file