We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f80fb1 commit db15ff7Copy full SHA for db15ff7
src/mouse.c
@@ -300,7 +300,8 @@ void scrollMouse(int x, int y)
300
mouseScrollInputH.mi.dwFlags = MOUSEEVENTF_HWHEEL;
301
mouseScrollInputH.mi.time = 0;
302
mouseScrollInputH.mi.dwExtraInfo = 0;
303
- mouseScrollInputH.mi.mouseData = x;
+ // Flip x to match other platforms.
304
+ mouseScrollInputH.mi.mouseData = -x;
305
306
mouseScrollInputV.type = INPUT_MOUSE;
307
mouseScrollInputV.mi.dx = 0;
0 commit comments