mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
Merge pull request #306 from nwin/patch-1
Fix scrolling wheel behavior on OSX
This commit is contained in:
@@ -300,7 +300,7 @@ impl<'a> Iterator for PollEventsIterator<'a> {
|
||||
self.window.pending_events.lock().unwrap().extend(events.into_iter());
|
||||
event
|
||||
},
|
||||
NSScrollWheel => { Some(MouseWheel(-event.scrollingDeltaY() as i32)) },
|
||||
NSScrollWheel => { Some(MouseWheel(event.scrollingDeltaY() as i32)) },
|
||||
_ => { None },
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user