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

ScrollPane steals MouseClicked from parent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0.1
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Environment:

      Win 7 64-bit Java 7u1 (32-bit)
      JavaFX Scene is in a JFXPanel

      Description

      I have called setOnMouseClicked on a parent component that has several child components. Some of the children also handle MouseClicked events. When I click on the component and the click is not over one of the children that handle Mouse Clicked then the parent's event handler is called - unless I put the children in a ScrollPane. When I do that the children respond to mouse clicks as they always did, but if I click inside an "empty" area of the ScrollPane the event handler for the parent is not called.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              miflemi Mick Fleming (Inactive)
              Reporter:
              swpalmer Scott Palmer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: