diff options
-rw-r--r-- | ios/experimental/LibreOffice/LibreOffice/View.m | 9 |
1 files changed, 3 insertions, 6 deletions
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); } } |