From b23e98740a243f10a3f99bc0f83bd55baa2964e9 Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 30 Dec 2016 14:09:10 +0100 Subject: [PATCH] fix build --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 71534ffe74..ddcf8be34a 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -1033,8 +1033,8 @@ public class OsmandMapTileView implements IMapDownloaderCallback { calc.setRotate(calcRotate); calc.setZoomAndAnimation(initialViewport.getZoom(), dz, initialViewport.getZoomFloatPart()); - // Pins map to initial zoom center, but inhibits 2 finger drag - //final QuadPoint cp = initialViewport.getCenterPixelPoint(); + // Keep zoom center fixed or flexible + final QuadPoint cp = initialViewport.getCenterPixelPoint(); //final LatLon r = calc.getLatLonFromPixel(cp.x + cp.x - initialMultiTouchCenterPoint.x, cp.y + cp.y - initialMultiTouchCenterPoint.y); final LatLon r = calc.getLatLonFromPixel(cp.x + cp.x - updatedCenterPoint.x, cp.y + cp.y - updatedCenterPoint.y); setLatLon(r.getLatitude(), r.getLongitude());