From 90273d00732c31b4ea66a027fd754ddd19573c4f Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 3 Jan 2017 10:58:02 +0100 Subject: [PATCH] prevent map losing link2location during slide scaling (2) --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 38bb359c9a..271d275f58 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -830,7 +830,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { final double lat = tb.getLatFromPixel(event.getX(), event.getY()); final double lon = tb.getLonFromPixel(event.getX(), event.getY()); int zoomDir = event.getAxisValue(MotionEvent.AXIS_VSCROLL) < 0 ? -1 : 1; - getAnimatedDraggingThread().startMoving(lat, lon, getZoom() + zoomDir, !(doubleTapScaleDetector.isInZoomMode() || afterDoubleTap)); + getAnimatedDraggingThread().startMoving(lat, lon, getZoom() + zoomDir, true); return true; } return false; @@ -1053,7 +1053,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { if (!isZoomingAllowed(baseZoom, dz)) { dz = Math.signum(dz); } - zoomToAnimate(baseZoom, dz, true); + zoomToAnimate(baseZoom, dz, !(doubleTapScaleDetector.isInZoomMode() || afterDoubleTap)); rotateToAnimate(calcRotate); }