diff --git a/ios/MBXViewController.mm b/ios/MBXViewController.mm index 5e6cd5f18..b61171397 100644 --- a/ios/MBXViewController.mm +++ b/ios/MBXViewController.mm @@ -16,7 +16,7 @@ #include #include -@interface MBXViewController () +@interface MBXViewController () @property (nonatomic) EAGLContext *context; @property (nonatomic) CGPoint center; @@ -83,6 +83,7 @@ class MBXMapView mapView->init(); UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePanGesture:)]; + pan.delegate = self; [self.view addGestureRecognizer:pan]; UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleDoubleTapGesture:)]; @@ -105,9 +106,11 @@ class MBXMapView [self.view addGestureRecognizer:threeFingerLongPress]; UIPinchGestureRecognizer *pinch = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(handlePinchGesture:)]; + pinch.delegate = self; [self.view addGestureRecognizer:pinch]; UIRotationGestureRecognizer *rotate = [[UIRotationGestureRecognizer alloc] initWithTarget:self action:@selector(handleRotateGesture:)]; + rotate.delegate = self; [self.view addGestureRecognizer:rotate]; } @@ -209,6 +212,11 @@ class MBXMapView } } +- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer +{ + return YES; +} + CADisplayLink *displayLink; MBXMapView *mapView; NSOperationQueue *queue;