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