MouseDrag() while mouse button is pressed

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.

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

I’ll try it out, thank you!