6957166: With XAWT, set arguments properly creating a MouseWheelEvent

Swap some parameters to allow bigger values for click count.

Reviewed-by: dav
This commit is contained in:
Yuri Nesterenko 2010-06-24 11:50:18 +04:00
parent c49c7ce7e8
commit 83f31097a2

View File

@ -778,8 +778,8 @@ public class XWindow extends XBaseWindow implements X11ComponentPeer {
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);
}
}