Skip to content

Commit

Permalink
Fix: Properly handle reason check
Browse files Browse the repository at this point in the history
  • Loading branch information
kristfal committed Sep 4, 2019
1 parent ab029e8 commit 502f6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RCTMGL/RCTMGLMapViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ - (void)mapViewRegionIsChanging:(MGLMapView *)mapView

- (void)mapView:(MGLMapView *)mapView regionDidChangeWithReason:(MGLCameraChangeReason)reason animated:(BOOL)animated
{
if (reason & ~MGLCameraChangeReasonTransitionCancelled) return;
if (reason & MGLCameraChangeReasonTransitionCancelled == MGLCameraChangeReasonTransitionCancelled) return;

((RCTMGLMapView *) mapView).isUserInteraction = (BOOL)(reason & ~MGLCameraChangeReasonProgrammatic);

Expand Down

0 comments on commit 502f6ed

Please sign in to comment.