mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11:00
Fix MouseMoved by checking for NSDrag events as well, closes #288
This commit is contained in:
parent
1055eed078
commit
246837adc8
|
@ -237,7 +237,10 @@ impl<'a> Iterator for PollEventsIterator<'a> {
|
|||
NSLeftMouseUp => { Some(MouseInput(Released, MouseButton::Left)) },
|
||||
NSRightMouseDown => { Some(MouseInput(Pressed, MouseButton::Right)) },
|
||||
NSRightMouseUp => { Some(MouseInput(Released, MouseButton::Right)) },
|
||||
NSMouseMoved => {
|
||||
NSMouseMoved |
|
||||
NSLeftMouseDragged |
|
||||
NSOtherMouseDragged |
|
||||
NSRightMouseDragged => {
|
||||
let window_point = event.locationInWindow();
|
||||
let window: id = msg_send()(event, selector("window"));
|
||||
let view_point = if window == 0 {
|
||||
|
|
Loading…
Reference in a new issue