Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit c48962e

Browse files
committed
Merge pull request #1296 from mapbox/1258-deadpan
Cancel animations on touch down
2 parents e955e6c + 261b616 commit c48962e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

platform/ios/MGLMapView.mm

+9
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,15 @@ - (void)handleCompassTapGesture:(id)sender
706706

707707
#pragma clang diagnostic pop
708708

709+
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
710+
{
711+
(void)touches;
712+
(void)event;
713+
mbglMap->cancelTransitions();
714+
mbglMap->setGestureInProgress(false);
715+
self.animatingGesture = NO;
716+
}
717+
709718
- (void)handlePanGesture:(UIPanGestureRecognizer *)pan
710719
{
711720
if ( ! self.isScrollEnabled) return;

0 commit comments

Comments
 (0)