Skip to content

Commit cb0da09

Browse files
committed
fix: scrolling on Windows
1 parent e99b961 commit cb0da09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mouse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ void scrollMouse(int x, int y)
317317
mouseScrollInputs[1].mi.dwExtraInfo = 0;
318318
mouseScrollInputs[1].mi.mouseData = y;
319319

320-
SendInput(2, mouseScrollInputs, sizeof(mouseScrollInputs));
320+
SendInput(2, mouseScrollInputs, sizeof(INPUT));
321321
#endif
322322
}
323323

0 commit comments

Comments
 (0)