Drag Over

Sil de Reuver shared this question 2 years ago
Answered

I would like to make an drag-over style change. When I drag an element over another element the element changes it style.


For now I've made an event:

When panel_1x =panel_2x & panel_1y =panel_2y > change style


It works however only when I drag the element exactly onto the same X&Y point.

Is there a way to achieve this when the object area's overlap?

Comments (3)

photo
1

Dear Sil,


The following example should help. Kindly let me know how it goes.


Best,


Sonia Durán

photo
1

Hi Sonia,


Thanks for the input. However, this example changes the style when you end the drag.

I would like to change the style while I'm dragging. So kind of a mouse-over but with an object.

I'm making a drop-container, which should give me feedback when I can let go of the drag.

I found this example in an old post.

photo
1

Hi Sil,

Then you just need to change the target at the "On drag end" event (The small square instead the big square).

Best,

Sonia Durán