From 928f11323b876796047eda578eecee6e937ffd25 Mon Sep 17 00:00:00 2001 From: Kevin Harwood Date: Wed, 30 Apr 2014 16:22:55 -0500 Subject: [PATCH] Fix where the user could interact with the views during a gesture --- MMDrawerController/MMDrawerController.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MMDrawerController/MMDrawerController.m b/MMDrawerController/MMDrawerController.m index f1265368..872a8dca 100644 --- a/MMDrawerController/MMDrawerController.m +++ b/MMDrawerController/MMDrawerController.m @@ -998,6 +998,7 @@ -(void)panGestureCallback:(UIPanGestureRecognizer *)panGesture{ } } case UIGestureRecognizerStateChanged:{ + self.view.userInteractionEnabled = NO; CGRect newFrame = self.startingPanRect; CGPoint translatedPoint = [panGesture translationInView:self.centerContainerView]; newFrame.origin.x = [self roundedOriginXForDrawerConstriants:CGRectGetMinX(self.startingPanRect)+translatedPoint.x]; @@ -1044,10 +1045,12 @@ -(void)panGestureCallback:(UIPanGestureRecognizer *)panGesture{ self.gestureCompletion(self, panGesture); } }]; + self.view.userInteractionEnabled = YES; break; } case UIGestureRecognizerStateCancelled:{ [panGesture setEnabled:YES]; + self.view.userInteractionEnabled = YES; break; } default: