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

Mouse events should be affected by Effects which imply a coordinate transformation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3
    • fx1.2
    • fx1.0
    • javafx
    • Windows XP

    Description

      (Filed on behalf of Sergey Malenkov, who doesn't yet have JIRA access...)

      The following demo creates a component with a perspective transform. The component has a cursor applied to it, but the cursor activates/deactivates as if the component were not translated, with no regard for its actual on-screen bounds.

      import javafx.application.Frame;

      import javafx.scene.Cursor;
      import javafx.scene.Scene;
      import javafx.scene.effect.PerspectiveTransform;
      import javafx.scene.geometry.Rectangle;
      import javafx.scene.paint.Color;

      Frame {
       title: "Test (JavaFX demo)"
       visible: true
       scene: Scene {
         fill: Color.BLACK
         content: [
           Rectangle {
             width: 100
             height: 100
             fill: Color.WHITE
             cursor: Cursor.HAND
             effect: PerspectiveTransform {
               ulx: 100 uly: 100
               urx: 180 ury: 120
               lrx: 200 lry: 200
               llx: 120 lly: 180
             }
           }
         ]
       }
      }

      Attachments

        Activity

          People

            flar Jim Graham
            enicholasunw Ethan Nicholas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: