From 0932ea1d7ddd179c233aeede36f5c8611564b4aa Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 31 Dec 2016 15:55:59 +0100 Subject: [PATCH] small efficiency experiment --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 653124b830..53d5df6d21 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -1114,7 +1114,9 @@ public class OsmandMapTileView implements IMapDownloaderCallback { @Override public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { - dragToAnimate(e2.getX() + distanceX, e2.getY() + distanceY, e2.getX(), e2.getY(), true); + if (!(multiTouchSupport.isInZoomMode()) { + dragToAnimate(e2.getX() + distanceX, e2.getY() + distanceY, e2.getX(), e2.getY(), true); + } return true; }