summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-08-20 14:24:29 -0700
committerjmkiley <jordan.kiley@mapbox.com>2019-08-20 14:24:29 -0700
commitad64cc1320562c081c46d1b25270cef1d85aba2a (patch)
tree2d32515746eff9feb2703386d3526c356311e1e8
parent1a6924730b6f2c1a490a0e806de77c86dd92f21b (diff)
downloadqtlocation-mapboxgl-ad64cc1320562c081c46d1b25270cef1d85aba2a.tar.gz
[ios] white space
-rw-r--r--platform/ios/src/MGLMapView.mm6
1 files changed, 1 insertions, 5 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 58c93dcad9..42b641feec 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -573,7 +573,7 @@ public:
_rotate.delegate = self;
[self addGestureRecognizer:_rotate];
_rotateEnabled = YES;
- _rotationThresholdWhileZooming = 3.5;
+ _rotationThresholdWhileZooming = 3;
_doubleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleDoubleTapGesture:)];
_doubleTap.numberOfTapsRequired = 2;
@@ -1787,14 +1787,12 @@ public:
}
else if ((rotate.state == UIGestureRecognizerStateEnded || rotate.state == UIGestureRecognizerStateCancelled))
{
-
self.rotationBeforeThresholdMet = 0;
if (! self.isRotating) { return; }
self.isRotating = NO;
CGFloat velocity = rotate.velocity;
CGFloat decelerationRate = self.decelerationRate;
-
if (decelerationRate != MGLMapViewDecelerationRateImmediate && fabs(velocity) > 3)
{
CGFloat radians = self.angle + rotate.rotation;
@@ -1810,9 +1808,7 @@ public:
.withAnchor(mbgl::ScreenCoordinate { centerPoint.x, centerPoint.y }),
MGLDurationFromTimeInterval(decelerationRate));
-
[self notifyGestureDidEndWithDrift:YES];
-
__weak MGLMapView *weakSelf = self;
[self animateWithDelay:decelerationRate animations:^