From af65de0297f52d7cc796e64c480769516fefc3dd Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 30 Dec 2016 13:24:15 +0100 Subject: [PATCH] get sign right --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 76763846d3..21963613d4 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -1037,7 +1037,8 @@ public class OsmandMapTileView implements IMapDownloaderCallback { final QuadPoint cp = initialViewport.getCenterPixelPoint(); float dx = cp.x - initialMultiTouchCenterPoint.x; float dy = cp.y - initialMultiTouchCenterPoint.y; - final LatLon r = calc.getLatLonFromPixel(cp.x + dx, cp.y + dy); + //final LatLon r = calc.getLatLonFromPixel(cp.x + dx, cp.y + dy); + final LatLon r = calc.getLatLonFromPixel(cp.x - dx, cp.y - dy); setLatLon(r.getLatitude(), r.getLongitude()); int baseZoom = initialViewport.getZoom();