6957166: With XAWT, set arguments properly creating a MouseWheelEvent.
authoryan
Thu, 24 Jun 2010 11:50:18 +0400
changeset 5941 1a56de1b70b3
parent 5760 4177643566d5
child 5942 287c421fb9b2
6957166: With XAWT, set arguments properly creating a MouseWheelEvent. Summary: swap some parameters to allow bigger values for click count. Reviewed-by: dav
jdk/src/solaris/classes/sun/awt/X11/XWindow.java
--- a/jdk/src/solaris/classes/sun/awt/X11/XWindow.java	Fri Jun 18 17:13:26 2010 +0400
+++ b/jdk/src/solaris/classes/sun/awt/X11/XWindow.java	Thu Jun 24 11:50:18 2010 +0400
@@ -778,8 +778,8 @@
                                                           x, y,
                                                           xbe.get_x_root(),
                                                           xbe.get_y_root(),
-                                                          clickCount,false,MouseWheelEvent.WHEEL_UNIT_SCROLL,
-                                                          3,button==4 ?  -1 : 1);
+                                                          1,false,MouseWheelEvent.WHEEL_UNIT_SCROLL,
+                                                          3,button==4 ?  -1*clickCount : 1*clickCount);
                 postEventToEventQueue(mwe);
             }
         }