Merge pull request #306 from nwin/patch-1

Fix scrolling wheel behavior on OSX
This commit is contained in:
tomaka 2015-03-05 12:21:58 +01:00
commit 7154ea5cb0

View file

@ -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 },
};