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

MOUSE_MOVE events not fired over transparent areas of a stage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u6
    • javafx
    • None
    • Tested on Windows and Linux builds

      When using a transparent stage (StageStyle.TRANSPARENT), MOUSE_MOVE events are not fired when the mouse is over any part of the stage that is visually transparent. This occurs even if the cursor is within a Node's bounds, so long as the pixels under the cursor are transparent.

      I have attached a simple example that demonstrates what I mean. Move the mouse within the box and no events are fired. Move the mouse along the narrow border and events are fired. Comment-out the 'stage.initStyle' line or add '-fx-background-color: white;' to the root's style, and events are fired when you move the mouse within the box.

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported: