mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 09:06:29 -05:00
Fixed bug 1305 - mouse wheel scroll-down event created when mouse wheel is pressed down
Martin Schreiber 2011-09-15 06:08:38 PDT patch attached
This commit is contained in:
@@ -83,7 +83,7 @@ static SDL_bool X11_IsWheelEvent(Display * display,XEvent * event,int * ticks)
|
||||
if (event->xbutton.button == Button4) {
|
||||
*ticks = 1;
|
||||
}
|
||||
else {
|
||||
else if (event->xbutton.button == Button5) {
|
||||
*ticks = -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user