diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2016-10-05 22:54:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-05 22:54:54 +0200 |
commit | d96aabec436f09e8bb7cc31f35e7b681fcdd07f6 (patch) | |
tree | 3875973296c9d0821f0e4f791e57d01dd7c29fb1 | |
parent | 8b5228d6ecc832a8d839bd9de7d87d40cf08ccbb (diff) | |
download | qtlocation-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.java | 2 |
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); |