Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug 1305 - mouse wheel scroll-down event created when mouse whe…
Browse files Browse the repository at this point in the history
…el is pressed down

Martin Schreiber 2011-09-15 06:08:38 PDT

patch attached
  • Loading branch information
slouken committed Jan 8, 2012
1 parent 1470f3d commit 91dfe95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11events.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 91dfe95

Please sign in to comment.