Fixed bug 1305 - mouse wheel scroll-down event created when mouse wheel is pressed down
authorSam Lantinga <slouken@libsdl.org>
Sun, 08 Jan 2012 00:36:32 -0500
changeset 6184 976d9ec6c290
parent 6183 6d9a266e04bb
child 6185 b91e7565e877
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
src/video/x11/SDL_x11events.c
--- a/src/video/x11/SDL_x11events.c	Sat Jan 07 21:02:39 2012 -0800
+++ b/src/video/x11/SDL_x11events.c	Sun Jan 08 00:36:32 2012 -0500
@@ -83,7 +83,7 @@
             if (event->xbutton.button == Button4) {
                 *ticks = 1;
             }
-            else {
+            else if (event->xbutton.button == Button5) {
                 *ticks = -1;
             }