prevent map losing link2location during slide scaling
This commit is contained in:
parent
590891102f
commit
67ff0efcb3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue