From e63165c685e96acb7939b15db61328eef79ff920 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 1 Mar 2013 00:32:05 +0200 Subject: [PATCH] Pass touch events on to the ScaleGestureDetector Note that the listener doesn't do anything with the scale gestures yet, though. I guesss either a new type of VCL event is needed for zooming, or then we could fake entering of Control-+ and Control-- key events (or whatever the default bindings for zoom in and out are). Change-Id: Ib2ba138dd3e7874f85e9fc9fb7ac7198fa6212d3 --- .../src/org/libreoffice/experimental/desktop/Desktop.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java b/android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java index e471a7d08a8d..997a94263c9f 100644 --- a/android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java +++ b/android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java @@ -226,6 +226,8 @@ public class Desktop @Override public boolean onTouchEvent(MotionEvent event) { + gestureDetector.onTouchEvent(event); + if (!renderedOnce) return super.onTouchEvent(event);