Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panGesture disable #445

Closed
fuboyou opened this issue Apr 13, 2016 · 2 comments · May be fixed by #448
Closed

panGesture disable #445

fuboyou opened this issue Apr 13, 2016 · 2 comments · May be fixed by #448

Comments

@fuboyou
Copy link

fuboyou commented Apr 13, 2016

hello, my app leftDrawerViewController have a subView is tableView,the tableView bounce set NO, fast and frequent sliding in tableView, the up and down or so silding, then MMDrawerController panGesture will disable.
version:

MMDrawerController (0.6.0)

file:

 MMDrawerController.m

function:

(void)panGestureCallback:(UIPanGestureRecognizer *)panGesture

code:

case UIGestureRecognizerStateBegan:{
    if(self.animatingDrawer){
        [panGesture setEnabled:NO];
        break;
    }
    else {
        self.startingPanRect = self.centerContainerView.frame;
    }
}
@fuboyou
Copy link
Author

fuboyou commented Apr 22, 2016

I think add this will work

- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
    if (self.isAnimatingDrawer) {
        return NO;
    } else {
        return YES;
    }
}

@fuboyou fuboyou closed this as completed Apr 22, 2016
@fuboyou
Copy link
Author

fuboyou commented Apr 22, 2016

I reopen this question, maybe help others.

@fuboyou fuboyou reopened this Apr 22, 2016
fuboyou pushed a commit to fuboyou/MMDrawerController that referenced this issue Apr 22, 2016
JoeMatt added a commit to JoeMatt/MMDrawerController that referenced this issue May 3, 2017
panGesture exception disable,fix mutualmobile#445
@fuboyou fuboyou closed this as completed May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant