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

Gesture configuration #86

Open
mackworth opened this issue Mar 7, 2015 · 0 comments
Open

Gesture configuration #86

mackworth opened this issue Mar 7, 2015 · 0 comments

Comments

@mackworth
Copy link

Documentation suggestion: I wanted to change the minimumDuration of the longPress gesture after I created the layout, but I couldn't get it below 0.5 seconds. As the recognizer worked fine otherwise, I assumed other recognizers or buttons were interfering and delaying the recognition. It took me a couple of hours of debugging and searching through issues here before realizing that the recognizers aren't created until the layout is attached to a collectionView. (Thus before then, layout.longPressGestureRecognizer is nil, so assigning to its property is a no-op). Moved the setting down two lines and it works great.

Nothing wrong with that design, just wish this note had existed.

Thanks for a great framework!

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