Commit 0093511f authored by Sam Lantinga's avatar Sam Lantinga

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
parent 09758809
...@@ -83,7 +83,7 @@ static SDL_bool X11_IsWheelEvent(Display * display,XEvent * event,int * ticks) ...@@ -83,7 +83,7 @@ static SDL_bool X11_IsWheelEvent(Display * display,XEvent * event,int * ticks)
if (event->xbutton.button == Button4) { if (event->xbutton.button == Button4) {
*ticks = 1; *ticks = 1;
} }
else { else if (event->xbutton.button == Button5) {
*ticks = -1; *ticks = -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment