Merge pull request #1296 from mapbox/1258-deadpan

Cancel animations on touch down
This commit is contained in:
Justin R. Miller
2015-04-29 16:24:43 -04:00

View File

@@ -706,6 +706,15 @@ mbgl::DefaultFileSource *mbglFileSource = nullptr;
#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;