summaryrefslogtreecommitdiff
path: root/ios/experimental/LibreOffice/LibreOffice/View.m
diff options
context:
space:
mode:
Diffstat (limited to 'ios/experimental/LibreOffice/LibreOffice/View.m')
-rw-r--r--ios/experimental/LibreOffice/LibreOffice/View.m12
1 files changed, 11 insertions, 1 deletions
diff --git a/ios/experimental/LibreOffice/LibreOffice/View.m b/ios/experimental/LibreOffice/LibreOffice/View.m
index 56e4e0ea0451..ed1abc695258 100644
--- a/ios/experimental/LibreOffice/LibreOffice/View.m
+++ b/ios/experimental/LibreOffice/LibreOffice/View.m
@@ -46,7 +46,7 @@
// NSLog(@"drawRect: lo_render_windows took %f s", [[NSDate date] timeIntervalSinceDate: startDate]);
}
-- (void) tapGesture:(UIGestureRecognizer *)gestureRecognizer
+- (void)tapGesture:(UITapGestureRecognizer *)gestureRecognizer
{
if ([gestureRecognizer state] == UIGestureRecognizerStateEnded) {
CGPoint location = [gestureRecognizer locationInView: self];
@@ -57,6 +57,16 @@
NSLog(@"tapGesture: %@", gestureRecognizer);
}
+- (void)panGesture:(UIPanGestureRecognizer *)gestureRecognizer
+{
+ if ([gestureRecognizer state] == UIGestureRecognizerStateEnded) {
+ CGPoint translation = [gestureRecognizer translationInView: self];
+ NSLog(@"panGesture: pan: (%d,%d)", (int)translation.x, (int)translation.y);
+ lo_pan(translation.x, translation.y);
+ } else
+ NSLog(@"panGesture: %@", gestureRecognizer);
+}
+
@end
// vim:set shiftwidth=4 softtabstop=4 expandtab: