From fc8a8c8c805bc5ccee1b6cf39f5d587871b758b7 Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 30 Dec 2016 13:58:49 +0100 Subject: [PATCH] shift with updatedCenterPoint --- 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 520ba4e2a7..71534ffe74 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -1036,7 +1036,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { // Pins map to initial zoom center, but inhibits 2 finger drag //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(updatedCenterPoint.x, updatedCenterPoint.y); + final LatLon r = calc.getLatLonFromPixel(cp.x + cp.x - updatedCenterPoint.x, cp.y + cp.y - updatedCenterPoint.y); setLatLon(r.getLatitude(), r.getLongitude()); int baseZoom = initialViewport.getZoom();