diff options
author | mitchmindtree <mitchell.nordine@gmail.com> | 2015-02-22 15:15:50 +1100 |
---|---|---|
committer | mitchmindtree <mitchell.nordine@gmail.com> | 2015-02-22 15:58:37 +1100 |
commit | 246837adc8b8f531d5a7481b0fcb2687a3a27711 (patch) | |
tree | 24e86c31fcac1dde935e2273ec42064dbeb89c37 /src | |
parent | 1055eed078f674ad4cc657e99a247310183d635e (diff) | |
download | glutin-246837adc8b8f531d5a7481b0fcb2687a3a27711.tar.gz glutin-246837adc8b8f531d5a7481b0fcb2687a3a27711.zip |
Fix MouseMoved by checking for NSDrag events as well, closes #288
Diffstat (limited to 'src')
-rw-r--r-- | src/cocoa/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cocoa/mod.rs b/src/cocoa/mod.rs index 12f7a06..877a876 100644 --- a/src/cocoa/mod.rs +++ b/src/cocoa/mod.rs @@ -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 { |