MouseDrag() while mouse button is pressed


#1

Hi all!

Is there a way to get a notification when the mouse moves over my component while a mouse button was originally pressed in some other component (i.e. dragged) ? I want to switch the state of some components just by dragging the mouse over them.

Thanks.


#2

You could make the drag-to component a mouse listener of your dragged-from component.


#3

I’ll try it out, thank you!