From 91dfe958a0cc83e4b7dd582686e9054fa914c22d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 8 Jan 2012 00:36:32 -0500 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c index c97bb6f22..4f52c6093 100755 --- a/src/video/x11/SDL_x11events.c +++ b/src/video/x11/SDL_x11events.c @@ -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; }