prevent map losing link2location during slide scaling

This commit is contained in:
sonora 2017-01-03 10:41:28 +01:00
parent 590891102f
commit 67ff0efcb3

View file

@ -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, true);
getAnimatedDraggingThread().startMoving(lat, lon, getZoom() + zoomDir, !(doubleTapScaleDetector.isInZoomMode() || afterDoubleTap));
return true;
}
return false;