[ios] Don't pause camera animations when zoom/pitch/rotate/scroll are disabled
[ios] Move up code [ios] Changelog newline
This commit is contained in:
committed by
Nadia Barbosa
parent
8077055b1a
commit
569dc0d785
@@ -8,6 +8,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT
|
||||
* Fixed sporadic crash when using `MGLMapSnapshotter`. ([#13300](https://github.com/mapbox/mapbox-gl-native/pull/13300))
|
||||
* Added `MGLLoggingConfiguration` and `MGLLoggingBlockHandler` that handle error and fault events produced by the SDK. ([#13235](https://github.com/mapbox/mapbox-gl-native/pull/13235))
|
||||
* This SDK’s dynamic framework now has a bundle identifier of `com.mapbox.Mapbox`. ([#12857](https://github.com/mapbox/mapbox-gl-native/pull/12857))
|
||||
* Modified the behavior of the map view so that programmatic camera transitions can no longer be interrupted by user interaction when `MGLMapView.zoomEnabled`, `MGLMapView.rotateEnabled`, `MGLMapView.scrollEnabled`, and `MGLMapView.pitchEnabled` are set to false. ([#13362](https://github.com/mapbox/mapbox-gl-native/pull/13362))
|
||||
|
||||
## 4.6.0 - November 7, 2018
|
||||
|
||||
|
||||
@@ -1380,11 +1380,17 @@ public:
|
||||
|
||||
- (void)touchesBegan:(__unused NSSet<UITouch *> *)touches withEvent:(__unused UIEvent *)event
|
||||
{
|
||||
if (!self.zoomEnabled && !self.pitchEnabled && !self.rotateEnabled && !self.scrollEnabled)
|
||||
{
|
||||
return;
|
||||
};
|
||||
|
||||
_mbglMap->setGestureInProgress(false);
|
||||
if (self.userTrackingState == MGLUserTrackingStateBegan)
|
||||
{
|
||||
[self setUserTrackingMode:MGLUserTrackingModeNone animated:NO];
|
||||
}
|
||||
|
||||
[self cancelTransitions];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user