From bebc1b5664e7410a018cc1f5b75357c2e02a0915 Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 3 Jan 2017 17:32:59 +0100 Subject: [PATCH] fix ( --- 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 f95c17a87b..de900b2c75 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -1055,7 +1055,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { } //Try some slop logic here to better facilitate two finger tap zoom without losing map-linked-to-location - boolean loseLocationLinkSlop = (multiTouchSupport.getCenterPoint().x - initialMultiTouchCenterPoint.x) + boolean loseLocationLinkSlop = ((multiTouchSupport.getCenterPoint().x - initialMultiTouchCenterPoint.x) * (multiTouchSupport.getCenterPoint().x - initialMultiTouchCenterPoint.x) + (multiTouchSupport.getCenterPoint().y - initialMultiTouchCenterPoint.y) * (multiTouchSupport.getCenterPoint().y - initialMultiTouchCenterPoint.y))