Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2017-01-03 17:33:36 +01:00
commit 6fffbbe0f8

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