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

Pan gesture not working correctly #98

Open
Y2JChamp opened this issue Dec 18, 2019 · 0 comments
Open

Pan gesture not working correctly #98

Y2JChamp opened this issue Dec 18, 2019 · 0 comments

Comments

@Y2JChamp
Copy link

Y2JChamp commented Dec 18, 2019

Hi,
i'm facing the following issue:
When the menu is revealed (left menu) i swipe it to right again and it loses its anchor an its x position becomes greater than zero.
For this i have made a change to the library:

override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
        if let panGesture = gestureRecognizer as? UIPanGestureRecognizer, isMenuRevealed, panGesture.velocity(in: view).x > 0 {
            return false
        }
        return super.gestureRecognizerShouldBegin(gestureRecognizer)
    }

The same issue occurs when tapping on the button that calls the revealMenu and at the same time swiping right.

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

No branches or pull requests

1 participant