JDK-6957166 : With XAWT, set arguments properly creating a MouseWheelEvent.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2010-05-31
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b102Fixed
Related Reports
Relates :  
Description
On a unix machine (linux or solaris), open an image in a scrollpane and scroll it with a mouse wheel: it will be very slow because an actual native "click count" is not used in MouseWheelEvent processing -- it is passed as a wrong, ignored argument to an event constructor.

Comments
SUGGESTED FIX --- old/src/solaris/classes/sun/awt/X11/XWindow.java 2010-05-31 15:03:10.000000000 +0400 +++ new/src/solaris/classes/sun/awt/X11/XWindow.java 2010-05-31 15:03:09.000000000 +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); } }
19-08-2010

EVALUATION see description
31-05-2010