Reverse horizontal scroll direction (#2105)

This commit is contained in:
Emil Ernerfeldt
2022-03-13 14:22:02 +01:00
committed by GitHub
parent 1c68be0631
commit 85baf79d17
8 changed files with 46 additions and 26 deletions

View File

@@ -48,7 +48,7 @@ pub fn mouse_position_by_client(
}
pub fn mouse_scroll_delta(event: &WheelEvent) -> Option<MouseScrollDelta> {
let x = event.delta_x();
let x = -event.delta_x();
let y = -event.delta_y();
match event.delta_mode() {