Skip to content

Commit 798f761

Browse files
committed
Fixed Linux Y-axis scrolling bug
1 parent 6f1ce41 commit 798f761

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mouse.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ void scrollMouse(int x, int y)
274274
XTestFakeButtonEvent(display, xdir, 0, CurrentTime);
275275
}
276276
for (yi = 0; yi < abs(y); yi++) {
277-
YTestFakeButtonEvent(display, ydir, 1, CurrentTime);
278-
YTestFakeButtonEvent(display, ydir, 0, CurrentTime);
277+
XTestFakeButtonEvent(display, ydir, 1, CurrentTime);
278+
XTestFakeButtonEvent(display, ydir, 0, CurrentTime);
279279
}
280280

281281
XFlush(display);

0 commit comments

Comments
 (0)