mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 23:01:30 +11:00
Merge pull request #261 from glennw/fix-osx-mouse-wheel
Make the mouse wheel events match natural direction on osx.
This commit is contained in:
commit
9884908240
|
@ -490,7 +490,7 @@ impl Window {
|
||||||
events.push_back(alt_modifier.unwrap());
|
events.push_back(alt_modifier.unwrap());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
NSScrollWheel => { events.push_back(MouseWheel(-event.scrollingDeltaY() as i32)); },
|
NSScrollWheel => { events.push_back(MouseWheel(event.scrollingDeltaY() as i32)); },
|
||||||
NSOtherMouseDown => { },
|
NSOtherMouseDown => { },
|
||||||
NSOtherMouseUp => { },
|
NSOtherMouseUp => { },
|
||||||
NSOtherMouseDragged => { },
|
NSOtherMouseDragged => { },
|
||||||
|
|
Loading…
Reference in a new issue