diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2015-12-10 17:25:13 -0800 |
---|---|---|
committer | Tobrun <tobrun.van.nuland@gmail.com> | 2015-12-11 09:26:19 -0800 |
commit | 78691fa9e61dadbb73be28bcac1a606d7a029ad4 (patch) | |
tree | bfc55d66d0be90384ec2832288e22a63a23e88c5 | |
parent | f2b22666b09b430d5b11ed65d40d8635387f7ed9 (diff) | |
download | qtlocation-mapboxgl-78691fa9e61dadbb73be28bcac1a606d7a029ad4.tar.gz |
[android] #3245 Reverse Tilt Gesture
-rw-r--r-- | android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java b/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java index f062d35457..d55996cc94 100644 --- a/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java +++ b/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java @@ -2924,7 +2924,7 @@ public final class MapView extends FrameLayout { // Get tilt value (scale and clamp) double pitch = getTilt(); - pitch += 0.1 * detector.getShovePixelsDelta(); + pitch -= 0.1 * detector.getShovePixelsDelta(); pitch = Math.max(MINIMUM_TILT, Math.min(MAXIMUM_TILT, pitch)); // Tilt the map |