From d73c655e20bd0241bb8917d640005ccf2d4c530b Mon Sep 17 00:00:00 2001 From: Hardy Date: Sun, 1 Jan 2017 10:01:06 +0100 Subject: [PATCH] remove obsolete restriction --- .../src/net/osmand/plus/views/OsmandMapTileView.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 685a0f0267..aec9ba580d 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -157,7 +157,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { private MultiTouchSupport multiTouchSupport; private DoubleTapScaleDetector doubleTapScaleDetector; private TwoFingerTapDetector twoFingersTapDetector; - private boolean afterTwoFingersTap = false; + //private boolean afterTwoFingersTap = false; private boolean afterDoubleTap = false; public OsmandMapTileView(MapActivity activity, int w, int h) { @@ -218,7 +218,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { twoFingersTapDetector = new TwoFingerTapDetector() { @Override public void onTwoFingerTap() { - afterTwoFingersTap = true; + //afterTwoFingersTap = true; if (isZoomingAllowed(getZoom(), -1)) { getAnimatedDraggingThread().startZooming(getZoom() - 1, currentViewport.getZoomFloatPart(), true); } @@ -1092,9 +1092,9 @@ public class OsmandMapTileView implements IMapDownloaderCallback { public void onLongPress(MotionEvent e) { if (multiTouchSupport.isInZoomMode() || doubleTapScaleDetector.isInZoomMode() - || doubleTapScaleDetector.isDoubleTapping() - || afterTwoFingersTap) { - afterTwoFingersTap = false; + || doubleTapScaleDetector.isDoubleTapping()) { + // || afterTwoFingersTap) { + //afterTwoFingersTap = false; return; } if (LOG.isDebugEnabled()) {