From 54be385b3332a0ad615426a1085ef18b6f517af7 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 11 Oct 2013 17:58:53 +0300 Subject: Redo the temporary hack for long touch: just simulate a double-click This is just throwaway experimentation, not how it should *really* be done of course. Change-Id: If600a5d3f01f118e84079f513dfccb25f4d59622 --- ios/experimental/LibreOffice/LibreOffice/View.m | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'ios/experimental') diff --git a/ios/experimental/LibreOffice/LibreOffice/View.m b/ios/experimental/LibreOffice/LibreOffice/View.m index a047bb0874f6..99d57e97cc49 100644 --- a/ios/experimental/LibreOffice/LibreOffice/View.m +++ b/ios/experimental/LibreOffice/LibreOffice/View.m @@ -103,12 +103,9 @@ NSLog(@"longPressGesture: state %d cords (%d,%d)",state ,(int)point.x,(int)point.y); - if (state == UIGestureRecognizerStateBegan) { - lo_mouse_drag(point.x, point.y, DOWN); - } else if (state == UIGestureRecognizerStateChanged) { - lo_mouse_drag(point.x, point.y, MOVE); - } else if (state == UIGestureRecognizerStateEnded) { - lo_mouse_drag(point.x, point.y, UP); + if (state == UIGestureRecognizerStateEnded) { + lo_tap(point.x, point.y); + lo_tap(point.x, point.y); } } -- cgit