summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-09-04 10:35:31 -0700
committerjmkiley <jordan.kiley@mapbox.com>2019-09-04 10:35:31 -0700
commit1871b3e876908836ed78ae7428cbe9b1358f97a6 (patch)
tree8c7649eb736beab48be7a8ee3736a28148345590
parent021aab77cff99b8ccf8071f5774121e5baaaa288 (diff)
downloadqtlocation-mapboxgl-1871b3e876908836ed78ae7428cbe9b1358f97a6.tar.gz
[ios] Remove resetting the value
-rw-r--r--platform/ios/src/MGLMapView.mm2
1 files changed, 0 insertions, 2 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index f0e8faa936..8c8d036328 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -1782,8 +1782,6 @@ public:
self.cameraChangeReasonBitmask |= MGLCameraChangeReasonGestureRotate;
- _rotationThresholdWhileZooming = [[[NSUserDefaults standardUserDefaults] objectForKey:MGLRotationThresholdWhileZoomingKey] floatValue];
-
// Check whether a zoom triggered by a pinch gesture is occurring and if the rotation threshold has been met.
if (MGLDegreesFromRadians(self.rotationBeforeThresholdMet) < self.rotationThresholdWhileZooming && self.isZooming && !self.isRotating) {
self.rotationBeforeThresholdMet += fabs(rotate.rotation);