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: