This commit is contained in:
sonora 2017-01-03 17:32:59 +01:00
parent d7d13cb23d
commit bebc1b5664

View file

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