Skip to content

Commit db15ff7

Browse files
committed
Flip x on Windows to match other platforms.
1 parent 1f80fb1 commit db15ff7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mouse.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ void scrollMouse(int x, int y)
300300
mouseScrollInputH.mi.dwFlags = MOUSEEVENTF_HWHEEL;
301301
mouseScrollInputH.mi.time = 0;
302302
mouseScrollInputH.mi.dwExtraInfo = 0;
303-
mouseScrollInputH.mi.mouseData = x;
303+
// Flip x to match other platforms.
304+
mouseScrollInputH.mi.mouseData = -x;
304305

305306
mouseScrollInputV.type = INPUT_MOUSE;
306307
mouseScrollInputV.mi.dx = 0;

0 commit comments

Comments
 (0)