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

support for high-resolution mouse wheel

    Details

    • Subcomponent:
    • Resolved In Build:
      b25
    • CPU:
      x86
    • OS:
      windows_vista
    • Verification:
      Not verified

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.6.0"
        Java(TM) SE Runtime Environment (build 1.6.0-b105)
        Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

        ADDITIONAL OS VERSION INFORMATION :
        Windows Vista Ultimate Edition
        Microsoft Windows [Version 6.0.6000]


        EXTRA RELEVANT SYSTEM CONFIGURATION :
        Microsoft Wireless Optical Mouse 2.0
        Logitech LX3 Optical Mouse (corded)
        Microsoft IntelliPoint 6.1

        A DESCRIPTION OF THE PROBLEM :
        When using the mouse scroll wheel within AWT and Swing applications I get different behaviour when using different mice on my Windows Vista system.

        When using a Microsoft Wireless Optical Mouse 2.0, mouse wheel scrolling does not work correctly. This occurs regardless of whether Microsoft IntelliPoint software is installed or not. The mouse wheel scrolling works fine in all other (non-Java) applications.

        Switching the mouse to an alternative (in my case a Logitech LX3 Optical Mouse) and the mouse wheel scrolling works correctly in all AWT and Swing applications.

        Using the following simple Swing application:

        import java.awt.event.MouseWheelListener;
        import java.awt.event.MouseWheelEvent;
        import javax.swing.*;

        public class MouseScroller extends JFrame {

            public MouseScroller() {
                super("Mouse Scroller");
                addMouseWheelListener(new MouseWheelListener() {
                    public void mouseWheelMoved(MouseWheelEvent e) {
                        System.out.println(e);
                    }
                });
            }

            public static void main(String[] args) {
                MouseScroller ms = new MouseScroller();
                ms.setVisible(true);
            }
        }
         
        If using the scroll wheel while within the JFrame area I get the following output:

        Microsoft Wireless Optical Mouse 2.,0:
        java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(586,916),absolute(0,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=16,wheelRotation=0] on frame0

        Note that the wheelRotation property is always set to 0 regardless of whether I scroll the mouse wheel up or down.


        Logitech LX3 Optical Mouse:
        java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(131,129),absolute(0,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=16,wheelRotation=-1] on frame0
        java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(131,129),absolute(0,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=16,wheelRotation=1] on frame0

        The wheelRotation property is set to -1 or 1 as would be expected when I scroll the wheel first up then down.




        REPRODUCIBILITY :
        This bug can be reproduced always.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dcherepanov Dmitry Cherepanov
                  Reporter:
                  dav Andrei Dmitriev (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: