Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8099099

MouseEvent should explicitly support scrollWheelRotation both horizontally and vertically

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • None
    • javafx
    • 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. :)


            psafrata Pavel Ĺ afrata
            jmarinacsunw Joshua Marinacci (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: