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

Only prevent click event when drag is in relevant direction and irrespective of positive/negative scroll #35

Merged
merged 2 commits into from
Mar 7, 2020
Merged

Only prevent click event when drag is in relevant direction and irrespective of positive/negative scroll #35

merged 2 commits into from
Mar 7, 2020

Conversation

joshdavenport
Copy link
Contributor

Stops irrelevant axis based on direction prop (which can be "horizontal" or "vertical" or "any") from affecting click event prevention

Stops irrelevant axis based on direction prop (which can be "horizontal" or "vertical" or "any") from affecting click event prevention
@joshdavenport
Copy link
Contributor Author

This PR also takes into account the change made in #33 which is also important for getting this click event prevention stuff right.

@joshdavenport joshdavenport changed the title Only prevent click event when drag is in relevant direction Only prevent click event when drag is in relevant direction and irrespective of positive/negative scroll Mar 4, 2020
@ilyashubin
Copy link
Owner

Oh thank you! Definitely merging this

@ilyashubin ilyashubin merged commit 638dd52 into ilyashubin:master Mar 7, 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 this pull request may close these issues.

2 participants