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

JavaFX fails to deliver MOUSE_DRAGGED events to original node if mouse moves too fast/far (use of internal methods)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P3 P3
    • None
    • 8u25
    • javafx
    • Windows 7, Java 1.8u25

      I am using a game library that uses JavaFX. The game library creates events for JavaFX via an EmbeddedSceneInterface. I have a Pane that covers the whole screen, and I added an event handler to it that handles Event.ANY and prints it's event type, so it should print EVERY event. From these prints, everything looks fine, i.e. the game library sends every event it should.

      But if I then handle every event (Event.ANY) on a Label, it does not get all the MOUSE_DRAGGED events that it should, while I'm keeping my mouse button pressed after clicking on the Label. In particular the Label stops getting MOUSE_DRAGGED events if I move my mouse too fast or too far from the Label. But "...all subsequent mouse events are delivered to the same node until the button is released." says the Javadoc for MouseEvent.

            ckyang Chien Yang (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: