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

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P3
    • fx1.2
    • Affects Version/s: fx1.0
    • Component/s: javafx
    • Environment:

      Windows XP

      (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
             }
           }
         ]
       }
      }

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

              Created:
              Updated:
              Resolved:
              Imported: