Full press-drag-release done event
Nir Lisker
nlisker at gmail.com
Fri Aug 15 23:53:13 UTC 2025
Hi all,
I've noticed that the full press-drag-release MouseDragEvent doesn't have
an event type that signals the end of the drag process. In DnD, there is
DragEvent.DRAG_DONE that signals the end of the drag-and-drop process
regardless of the result and the mouse location it was released
at, including outside of the application.
Adding a MouseDragEvent.MOUSE_DRAG_DONE is useful for applications that
want to act when the process finishes regardless of the result. Currently,
the "latest" event that can be delivered is a MOUSE_DRAG_RELEASED type, but
it can only be delivered if the event ends on a node that registered for
it. If the mouse is released outside of the application or on a node that
hasn't registered for it, there will be no notification that the drag chain
ended.
I propose adding this event type and the appropriate property on Scene and
Node. The modification seems rather simple in my prototype.
Thoughts?
-- Nir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20250816/84f130f0/attachment-0001.htm>
More information about the openjfx-dev
mailing list