mirror of
https://github.com/storytold/winit.git
synced 2026-11-24 13:20:44 +01:00
Merge pull request #306 from nwin/patch-1
Fix scrolling wheel behavior on OSX
This commit is contained in:
commit
7154ea5cb0
1 file changed
+1
-1
+1
-1
@@ -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