Rework MouseWheel event and fix the values on win32
This commit is contained in:
parent
c752142e04
commit
d9f0d92584
4 changed files with 9 additions and 6 deletions
|
|
@ -275,7 +275,7 @@ impl<'a> Iterator for PollEventsIterator<'a> {
|
|||
self.window.delegate.state.pending_events.lock().unwrap().extend(events.into_iter());
|
||||
event
|
||||
},
|
||||
NSScrollWheel => { Some(MouseWheel(event.scrollingDeltaY() as i32)) },
|
||||
NSScrollWheel => { Some(MouseWheel(event.scrollingDeltaX() as f64, event.scrollingDeltaY() as f64)) },
|
||||
_ => { None },
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue