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))