<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt;">
I think there was/is more: when the drop happens outside of any accepting node, the drag image scuttles back to the original place, with no way to disable that behavior.</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This made the DnD unsuitable for me in the context of a docking framework, where the user expects a new window to be created with the dragged content.</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Also, it is impossible to control the scaling of the drag image, for instance, to disable the scaling altogether.</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
-andy</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div id="mail-editor-reference-message-container">
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"></div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="text-align: left; padding: 3pt 0in 0in; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentcolor currentcolor; font-family: Aptos; font-size: 12pt; color: black;">
<b>From: </b>openjfx-dev <openjfx-dev-retn@openjdk.org> on behalf of John Hendrikx <john.hendrikx@gmail.com><br>
<b>Date: </b>Monday, August 18, 2025 at 02:37<br>
<b>To: </b>Nir Lisker <nlisker@gmail.com><br>
<b>Cc: </b>openjfx-dev@openjdk.org <openjfx-dev@openjdk.org><br>
<b>Subject: </b>Re: Full press-drag-release done event<br>
<br>
</div>
<p class="ms-outlook-mobile-reference-message skipProofing">Yeah, that sounds reasonable, showing the source of the drag is quite useful I would think, and you can only do that if you can unhighlight it at the right time.<br>
<br>
--John</p>
<div class="moz-cite-prefix">On 18/08/2025 09:13, Nir Lisker wrote:</div>
<blockquote>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">(Replying to the mailing list this time :) )</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">I have nodes that need to be dragged onto other nodes (in the same application) and are highlighted for the full drag-press-release duration, with an additional state change about the "selected"
node. If they are dropped on a target that can accept them, the cleanup can be done when the drop is done, but if they are dropped outside of the application or on a node that can't accept them, the process never finishes. There are workarounds, but DnD shows
that it can be much easier to do with the additional event.</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div dir="ltr" class="gmail_attr">On Sun, Aug 17, 2025 at 8:56 PM John Hendrikx <<a href="mailto:john.hendrikx@gmail.com" class="moz-txt-link-freetext" data-outlook-id="1ae17a57-64b7-4cec-98b6-37080005e6d1">john.hendrikx@gmail.com</a>> wrote:</div>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204);">
<div class="gmail_quote">Seems harmless enough. What is your use case?<br>
<br>
On 16/08/2025 01:53, Nir Lisker wrote:<br>
> Hi all,<br>
><br>
> I've noticed that the full press-drag-release MouseDragEvent doesn't<br>
> have an event type that signals the end of the drag process. In DnD,<br>
> there is DragEvent.DRAG_DONE that signals the end of the drag-and-drop<br>
> process regardless of the result and the mouse location it was<br>
> released at, including outside of the application.<br>
><br>
> Adding a MouseDragEvent.MOUSE_DRAG_DONE is useful for applications<br>
> that want to act when the process finishes regardless of the result.<br>
> Currently, the "latest" event that can be delivered is a<br>
> MOUSE_DRAG_RELEASED type, but it can only be delivered if the event<br>
> ends on a node that registered for it. If the mouse is released<br>
> outside of the application or on a node that hasn't registered for it,<br>
> there will be no notification that the drag chain ended.<br>
><br>
> I propose adding this event type and the appropriate property on Scene<br>
> and Node. The modification seems rather simple in my prototype.<br>
><br>
> Thoughts?<br>
><br>
> -- Nir</div>
</blockquote>
</blockquote>
</div>
</body>
</html>