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