Prevent doubletapping from opening undrawable zoom.
This commit is contained in:
parent
060c9b84be
commit
dd79be4bb7
1 changed files with 1 additions and 1 deletions
|
@ -1064,7 +1064,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onDoubleTap(MotionEvent e) {
|
public boolean onDoubleTap(MotionEvent e) {
|
||||||
if (isZoomingAllowed(getZoom(), 1)) {
|
if (isZoomingAllowed(getZoom(), 1.1f)) {
|
||||||
final RotatedTileBox tb = getCurrentRotatedTileBox();
|
final RotatedTileBox tb = getCurrentRotatedTileBox();
|
||||||
final double lat = tb.getLatFromPixel(e.getX(), e.getY());
|
final double lat = tb.getLatFromPixel(e.getX(), e.getY());
|
||||||
final double lon = tb.getLonFromPixel(e.getX(), e.getY());
|
final double lon = tb.getLonFromPixel(e.getX(), e.getY());
|
||||||
|
|
Loading…
Reference in a new issue