diff options
-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 { |