Skip to content

Commit

Permalink
Add double-click support on Skia/OS X port (fix #1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Apr 12, 2016
1 parent 44fadbc commit 7c9ba13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/she/osx/view.mm
Expand Up @@ -302,7 +302,8 @@ - (void)otherMouseDragged:(NSEvent*)event
- (void)handleMouseDown:(NSEvent*)event
{
Event ev;
ev.setType(Event::MouseDown);
ev.setType(event.clickCount == 2 ? Event::MouseDoubleClick:
Event::MouseDown);
ev.setPosition(get_local_mouse_pos(self, event));
ev.setButton(get_mouse_buttons(event));
ev.setModifiers(get_modifiers_from_nsevent(event));
Expand Down

0 comments on commit 7c9ba13

Please sign in to comment.