Hello,

There is a JavaFX Application [1] which has a rotated border which contains a ScrollPane. When the scroll pane is scrolled vertically by a mouse or by a touch pad the scrollpane itself is scrolled horizontally.

What I see from the code the ScrollEvent constructor recomputes x and y coordinates (actually the pickResult)
in the GestureEvent superclass [2] but leaves deltaX/Y  as is [3].

Should deltaX/Y (and totalDeltaX/Y and may be textDeltaX/Y ) values be recomputed in the similar way as x/y [4]? It looks like it requires to compute and pass PickResult  for deltaX/Y to ScrollEvent as well.

[1] http://cr.openjdk.java.net/~alexsch/samples/javafx/events/RotatedScrollPaneExample.java [2] https://github.com/openjdk/jfx/blob/c6069d6845df4b90cca226e2b3dff49e3b48d8ac/modules/javafx.graphics/src/main/java/javafx/scene/input/GestureEvent.java#L120 [3] https://github.com/openjdk/jfx/blob/c6069d6845df4b90cca226e2b3dff49e3b48d8ac/modules/javafx.graphics/src/main/java/javafx/scene/input/ScrollEvent.java#L155 [4] https://github.com/openjdk/jfx/blob/c6069d6845df4b90cca226e2b3dff49e3b48d8ac/modules/javafx.graphics/src/main/java/javafx/scene/Scene.java#L2693

Thanks,
Alexander.

Reply via email to