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

Box.onLongPress gets called twice #147

Open
halpz opened this issue Jul 2, 2015 · 1 comment
Open

Box.onLongPress gets called twice #147

halpz opened this issue Jul 2, 2015 · 1 comment

Comments

@halpz
Copy link

halpz commented Jul 2, 2015

When I put a longpress handler on an MGBox - it gets called twice

@iNono22
Copy link

iNono22 commented Mar 10, 2016

@halpz
It gets called twice probably one time when the gesture start being detected UIGestureRecognizerStateBegan and when it is finished UIGestureRecognizerStateEnded

Make sure to implement the UIGestureRecognizerDelegate and verify the:
gestureRecognizer.state == UIGestureRecognizerStateEnded OR UIGestureRecognizerStateBegan
One of the two only

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

2 participants