prevent map losing link2location during slide scaling (2)
This commit is contained in:
parent
03b66cd353
commit
90273d0073
1 changed files with 2 additions and 2 deletions
|
@ -830,7 +830,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
|
||||||
final double lat = tb.getLatFromPixel(event.getX(), event.getY());
|
final double lat = tb.getLatFromPixel(event.getX(), event.getY());
|
||||||
final double lon = tb.getLonFromPixel(event.getX(), event.getY());
|
final double lon = tb.getLonFromPixel(event.getX(), event.getY());
|
||||||
int zoomDir = event.getAxisValue(MotionEvent.AXIS_VSCROLL) < 0 ? -1 : 1;
|
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 true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -1053,7 +1053,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
|
||||||
if (!isZoomingAllowed(baseZoom, dz)) {
|
if (!isZoomingAllowed(baseZoom, dz)) {
|
||||||
dz = Math.signum(dz);
|
dz = Math.signum(dz);
|
||||||
}
|
}
|
||||||
zoomToAnimate(baseZoom, dz, true);
|
zoomToAnimate(baseZoom, dz, !(doubleTapScaleDetector.isInZoomMode() || afterDoubleTap));
|
||||||
rotateToAnimate(calcRotate);
|
rotateToAnimate(calcRotate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue