Fixed bug 1305 - mouse wheel scroll-down event created when mouse wheel is pressed down
authorSam Lantinga
Sun, 08 Jan 2012 00:36:32 -0500
changeset 6184976d9ec6c290
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
     1.1 --- a/src/video/x11/SDL_x11events.c	Sat Jan 07 21:02:39 2012 -0800
     1.2 +++ b/src/video/x11/SDL_x11events.c	Sun Jan 08 00:36:32 2012 -0500
     1.3 @@ -83,7 +83,7 @@
     1.4              if (event->xbutton.button == Button4) {
     1.5                  *ticks = 1;
     1.6              }
     1.7 -            else {
     1.8 +            else if (event->xbutton.button == Button5) {
     1.9                  *ticks = -1;
    1.10              }
    1.11