Prevent doubletapping from opening undrawable zoom.

This commit is contained in:
GaidamakUA 2016-01-28 11:30:11 +02:00
parent 060c9b84be
commit dd79be4bb7

View file

@ -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());