-
Enhancement
-
Resolution: Fixed
-
P4
-
jfx22
-
b03
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8338584 | jfx23.0.1 | Johan Vos | P4 | Resolved | Fixed | b03 |
JDK-8337650 | jfx21.0.5 | Johan Vos | P4 | Resolved | Fixed | b01 |
This means that when left/right swipe gestures are generated from a touch pad, the horizontal scroll amounts (deltaX) is ignored. (Only the small deltaY values from the gesture produce "choppy" small drag events).
However, controls like TableView or ScrollPane, have ScrollBar controls that are able to process both vertical and horizontal scroll amounts, coming from a mouse wheel or a touch pad.
Ideally, the TabPane should be able to process both scroll amounts, as well.
The attached test reproduces the issue, when using a touch pad. It can be reproduced on any platform and JavaFX version:
- Run the application.
- With a mouse, move the cursor to the tabs, and scroll the mouse wheel up and down, the tabs are scrolled horizontally (expected).
- With a touch pad, move the cursor to the tabs, and do an up or down swipe gesture, the tabs are scrolled horizontally (expected due to the exiting implementation), and do a left or right swipe gesture, the tabs are not scrolled horizontally, except for the very small deltaY from the gesture, (unexpected, it feels counter intuitive).
- backported by
-
JDK-8337650 Horizontal scroll events from touch pads should scroll the TabPane tabs
- Resolved
-
JDK-8338584 Horizontal scroll events from touch pads should scroll the TabPane tabs
- Resolved
- relates to
-
JDK-8334883 ☂ Nodes: nullability in properties
- Open
-
JDK-8335212 Robot: Add support for trackpad events
- Open
- links to
-
Commit(master) openjdk/jfx21u/29aa85ab
-
Commit(master) openjdk/jfx23u/b8a7a68e
-
Commit(master) openjdk/jfx/1bdb93c7
-
Review(master) openjdk/jfx21u/64
-
Review(master) openjdk/jfx23u/8
-
Review(master) openjdk/jfx/1486