summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-10-11 17:58:53 +0300
committerTor Lillqvist <tml@collabora.com>2013-10-11 18:05:05 +0300
commit54be385b3332a0ad615426a1085ef18b6f517af7 (patch)
tree79f9f921a97d6cbec0fa8defa1cb19ecca01a661 /ios
parentee0e92c9e939cfea947b749675829571c537b259 (diff)
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
Diffstat (limited to 'ios')
-rw-r--r--ios/experimental/LibreOffice/LibreOffice/View.m9
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);
}
}