summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2016-10-05 22:54:54 +0200
committerGitHub <noreply@github.com>2016-10-05 22:54:54 +0200
commitd96aabec436f09e8bb7cc31f35e7b681fcdd07f6 (patch)
tree3875973296c9d0821f0e4f791e57d01dd7c29fb1
parent8b5228d6ecc832a8d839bd9de7d87d40cf08ccbb (diff)
downloadqtlocation-mapboxgl-d96aabec436f09e8bb7cc31f35e7b681fcdd07f6.tar.gz
[android] - correct focal point data when double tapping (#6595)
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
index c6259e6e9f..317ccbf1a5 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
@@ -1728,7 +1728,7 @@ public class MapView extends FrameLayout {
if (twoTap && isTap && !inProgress) {
if (focalPoint != null) {
- zoom(false, focalPoint.x / screenDensity, focalPoint.y / screenDensity);
+ zoom(false, focalPoint.x, focalPoint.y);
} else {
PointF focalPoint = TwoFingerGestureDetector.determineFocalPoint(event);
zoom(false, focalPoint.x, focalPoint.y);