From ad4e075e439394fb6efde36aaa822d3a1745ea72 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Wed, 30 Apr 2014 17:30:49 -0700 Subject: [PATCH] fix iOS view controller for animations->transitions --- ios/MBXViewController.mm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ios/MBXViewController.mm b/ios/MBXViewController.mm index 375c546c1..062a2bd22 100644 --- a/ios/MBXViewController.mm +++ b/ios/MBXViewController.mm @@ -256,7 +256,7 @@ MBXViewController *viewController = nullptr; - (void)handlePanGesture:(UIPanGestureRecognizer *)pan { - map->cancelAnimations(); + map->cancelTransitions(); if (pan.state == UIGestureRecognizerStateBegan) { @@ -289,7 +289,7 @@ MBXViewController *viewController = nullptr; - (void)handlePinchGesture:(UIPinchGestureRecognizer *)pinch { - map->cancelAnimations(); + map->cancelTransitions(); if (pinch.state == UIGestureRecognizerStateBegan) { @@ -341,7 +341,7 @@ MBXViewController *viewController = nullptr; - (void)handleRotateGesture:(UIRotationGestureRecognizer *)rotate { - map->cancelAnimations(); + map->cancelTransitions(); if (rotate.state == UIGestureRecognizerStateBegan) { @@ -369,7 +369,7 @@ MBXViewController *viewController = nullptr; - (void)handleDoubleTapGesture:(UITapGestureRecognizer *)doubleTap { - map->cancelAnimations(); + map->cancelTransitions(); if (doubleTap.state == UIGestureRecognizerStateEnded) { @@ -379,7 +379,7 @@ MBXViewController *viewController = nullptr; - (void)handleTwoFingerTapGesture:(UITapGestureRecognizer *)twoFingerTap { - map->cancelAnimations(); + map->cancelTransitions(); if (twoFingerTap.state == UIGestureRecognizerStateEnded) { @@ -389,7 +389,7 @@ MBXViewController *viewController = nullptr; - (void)handleQuickZoomGesture:(UILongPressGestureRecognizer *)quickZoom { - map->cancelAnimations(); + map->cancelTransitions(); if (quickZoom.state == UIGestureRecognizerStateBegan) {