<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>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<br>
    </p>
    <div class="moz-cite-prefix">On 18/08/2025 09:13, Nir Lisker wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+0ynh8F1nj0OAeE9nou1AdVf8P54QhviZ=YZLke=Zmsm0EzKQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>(Replying to the mailing list this time :) )</div>
        <div><br>
        </div>
        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>
      <br>
      <div class="gmail_quote gmail_quote_container">
        <div dir="ltr" class="gmail_attr">On Sun, Aug 17, 2025 at
          8:56 PM John Hendrikx <<a
            href="mailto:john.hendrikx@gmail.com" moz-do-not-send="true"
            class="moz-txt-link-freetext">john.hendrikx@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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<br>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>