From 64db258bb2b7d449012f67b956ecb4511a5df44f Mon Sep 17 00:00:00 2001 From: Hardy Date: Mon, 2 Jan 2017 09:24:13 +0100 Subject: [PATCH] test optimization --- .../net/osmand/plus/views/MultiTouchSupport.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java b/OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java index 9dea3a489a..43466ffdf2 100644 --- a/OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java +++ b/OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java @@ -111,13 +111,13 @@ public class MultiTouchSupport { angleStarted = angle; inZoomMode = true; return true; - // End only on second-last pointer up, see above? - } else if(actionCode == ACTION_POINTER_UP){ - if(inZoomMode){ - listener.onZoomOrRotationEnded(zoomRelative, angleRelative); - inZoomMode = false; - } - return true; + // End only on second-last pointer up, see above + //} else if(actionCode == ACTION_POINTER_UP){ + // if(inZoomMode){ + // listener.onZoomOrRotationEnded(zoomRelative, angleRelative); + // inZoomMode = false; + // } + // return true; } else if(inZoomMode && actionCode == MotionEvent.ACTION_MOVE){ // Keep zoom center fixed or flexible centerPoint = new PointF((x1 + x2) / 2, (y1 + y2) / 2);