summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2019-05-27 17:11:30 +0200
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2019-05-29 10:16:01 +0200
commite493cf4662a53bbd6642f28da97da5a2588b06cf (patch)
tree8108f1ab33a31b684432a45bf450a45ae26d142b
parent0a7919ee7e1ab0dc10c3dc9662d9d15a29562cac (diff)
downloadqtlocation-mapboxgl-e493cf4662a53bbd6642f28da97da5a2588b06cf.tar.gz
[android] decrease zoom rate by 35%
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java
index b9550ec607..f7bf07c5ef 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java
@@ -558,7 +558,7 @@ final class MapGestureDetector {
}
private double getNewZoom(float scaleFactor, boolean quickZoom) {
- double zoomBy = Math.log(scaleFactor) / Math.log(Math.PI / 2);
+ double zoomBy = (Math.log(scaleFactor) / Math.log(Math.PI / 2)) * 0.65;
if (quickZoom) {
// clamp scale factors we feed to core #7514
boolean negative = zoomBy < 0;