Merge pull request #1296 from mapbox/1258-deadpan
Cancel animations on touch down
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user