Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8095312

[DND] FX sometimes forgets to invoke Node.onDragDetected() on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8u20
    • 8u20
    • javafx
    • Java(TM) SE Runtime Environment (build 1.8.0-b129)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b69, mixed mode)

    Description

      Working on Scene Builder, I noticed that sometimes Node.onDragDetected() is not invoked
      as expected. So far, this issue happened only on Mac.

      I did a sample project to reproduce the issue (see DragDetectedTest.zip).

      To reproduce the pb:

      1) Unzip and open DragDetectedTest project with NB (project needs a "JDK 1.8" platform)
      2) Run
          => a blue window is displayed
      3) Press the mouse over the blue area
          => mousePressedListener() is called
      4) Drag the mouse
          => dragDetectedListener() is called
          => dragOverListener() is called several times
      5) Release *AND KEEP THE MOUSE IMMOBILE*
          => dragDroppedListener() is called
          => dragExitedListener() is called
          => dragDoneListener() is called
          => OK
      6) *WITHOUT MOVING THE MOUSE*, press again the blue area
          => mousePressedListener() is called
      7) Drag the mouse
          => dragDetectedListener() is not invoked : BUG
      8) Release the mouse
          => mouseReleaseListener() is called
          => Drag & drop session has not been started : BUG

      Note that, if you move the mouse between steps #5 and #6,
      then it works ok : drag & drop session is started and managed correctly.
      So the key condition is : release and press again without moving the mouse.

      Attachments

        Issue Links

          Activity

            People

              anthony Anthony Petrov (Inactive)
              eleponn Eric Le Ponner
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: