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:
Sam Lantinga 2012-01-08 00:36:32 -05:00
parent 0975880949
commit 0093511f82

View file

@ -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;
}