mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 21:30:03 -04:00
Make the mouse wheel events match natural direction on osx.
This commit is contained in:
@@ -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 => { },
|
||||||
|
|||||||
Reference in New Issue
Block a user