Skip to content

Commit

Permalink
Fixed Linux Y-axis scrolling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dimatter committed Jun 30, 2017
1 parent 6f1ce41 commit 798f761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ void scrollMouse(int x, int y)
XTestFakeButtonEvent(display, xdir, 0, CurrentTime);
}
for (yi = 0; yi < abs(y); yi++) {
YTestFakeButtonEvent(display, ydir, 1, CurrentTime);
YTestFakeButtonEvent(display, ydir, 0, CurrentTime);
XTestFakeButtonEvent(display, ydir, 1, CurrentTime);
XTestFakeButtonEvent(display, ydir, 0, CurrentTime);
}

XFlush(display);
Expand Down

0 comments on commit 798f761

Please sign in to comment.