From dd79be4bb793a7b769e391557fd11a57a5e179b8 Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Thu, 28 Jan 2016 11:30:11 +0200 Subject: [PATCH] Prevent doubletapping from opening undrawable zoom. --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 658ce37989..bfb93771cb 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -1064,7 +1064,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { @Override public boolean onDoubleTap(MotionEvent e) { - if (isZoomingAllowed(getZoom(), 1)) { + if (isZoomingAllowed(getZoom(), 1.1f)) { final RotatedTileBox tb = getCurrentRotatedTileBox(); final double lat = tb.getLatFromPixel(e.getX(), e.getY()); final double lon = tb.getLonFromPixel(e.getX(), e.getY());