fix mouse scroll direction

This commit is contained in:
Mitchell Hashimoto
2022-10-31 12:09:34 -07:00
parent a14871e38a
commit a9df393580

View File

@ -1036,7 +1036,7 @@ fn scrollCallback(window: glfw.Window, xoff: f64, yoff: f64) void {
return; return;
}; };
win.mouseReport(if (yoff < 0) .four else .five, .press, win.mouse.mods, pos) catch |err| { win.mouseReport(if (yoff < 0) .five else .four, .press, win.mouse.mods, pos) catch |err| {
log.err("error reporting mouse event: {}", .{err}); log.err("error reporting mouse event: {}", .{err});
return; return;
}; };