-
Enhancement
-
Resolution: Duplicate
-
P3
-
None
-
None
-
None
The MouseEvent class has only a single variable for the mousewheel rotation. However, this isn't enough. On all current Mac laptops, and many other laptops and touch devices, you can scroll in both the horizontal and vertical directions by using a particular hand gesture on the track/touch area. (usually moving with two fingers at once). This should be supported in our api.
Now, I know what you are going to say. On a Mac you can just look for the mouseWheel plus shift events. Yes, this will work, but it's a hack introduced by the Mac Java team because they could not introduce a new field to the existing Swing event apis. JavaFX is a new platform that should *not be held back by legacy constraints*. We should make the mouse event actually do the right thing for modern input devices. (I'd also like to see a mouse identifier in case there are multiple mice, but I'll save that for another day. :)
Now, I know what you are going to say. On a Mac you can just look for the mouseWheel plus shift events. Yes, this will work, but it's a hack introduced by the Mac Java team because they could not introduce a new field to the existing Swing event apis. JavaFX is a new platform that should *not be held back by legacy constraints*. We should make the mouse event actually do the right thing for modern input devices. (I'd also like to see a mouse identifier in case there are multiple mice, but I'll save that for another day. :)
- duplicates
-
JDK-8101392 Introduce a separate scroll event
-
- Closed
-