Reverse horizontal scroll direction (#2105)
This commit is contained in:
parent
1c68be0631
commit
85baf79d17
8 changed files with 46 additions and 26 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue