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

Cancel animations on touch down #1296

Merged
merged 1 commit into from
Apr 29, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions platform/ios/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,15 @@ - (void)handleCompassTapGesture:(id)sender

#pragma clang diagnostic pop

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
(void)touches;
(void)event;
mbglMap->cancelTransitions();
mbglMap->setGestureInProgress(false);
self.animatingGesture = NO;
}

- (void)handlePanGesture:(UIPanGestureRecognizer *)pan
{
if ( ! self.isScrollEnabled) return;
Expand Down