From f6b1b5c387d80f28127de63d4f7ef40560dac0df Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 28 Dec 2016 22:30:25 +0100 Subject: [PATCH] reinstate ACTION_POINTER_UP handling --- .../net/osmand/plus/views/MultiTouchSupport.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java b/OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java index e7a112529f..5b5c05749c 100644 --- a/OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java +++ b/OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java @@ -111,13 +111,12 @@ public class MultiTouchSupport { angleStarted = angle; inZoomMode = true; return true; - // Let only the second last finger trigger onZoomOrRotationEnded (above) - //} else if(actionCode == ACTION_POINTER_UP){ - // if(inZoomMode){ - // listener.onZoomOrRotationEnded(zoomRelative, angleRelative); - // inZoomMode = false; - // } - // return true; + } else if(actionCode == ACTION_POINTER_UP){ + if(inZoomMode){ + listener.onZoomOrRotationEnded(zoomRelative, angleRelative); + inZoomMode = false; + } + return true; } else if(inZoomMode && actionCode == MotionEvent.ACTION_MOVE){ if(angleDefined) { angleRelative = MapUtils.unifyRotationTo360(angle - angleStarted);