From 8f1538c6d8fc6f2c1e0fb768837daa099d772857 Mon Sep 17 00:00:00 2001 From: Hardy Date: Mon, 2 Jan 2017 10:21:21 +0100 Subject: [PATCH] leave POINTER_UP (2) --- .../android/sample1/MultiTouchSupport.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/MultiTouchSupport.java b/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/MultiTouchSupport.java index 31596aa613..b6decfaf1f 100644 --- a/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/MultiTouchSupport.java +++ b/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/MultiTouchSupport.java @@ -119,16 +119,15 @@ public class MultiTouchSupport { listener.onGestureInit(x1, y1, x2, y2); return true; } - // End only on second-last pointer up, see above - //case MotionEvent.ACTION_POINTER_UP: { + case MotionEvent.ACTION_POINTER_UP: { - // if (inZoomMode || inTiltMode) { - // listener.onGestureFinished(scale, rotation); - // inZoomMode = false; - // inTiltMode = false; - // } - // return true; - //} + if (inZoomMode || inTiltMode) { + listener.onGestureFinished(scale, rotation); + inZoomMode = false; + inTiltMode = false; + } + return true; + } case MotionEvent.ACTION_MOVE: { if (inZoomMode) {