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

fix: detect direction and prevent scrolling from trigger slide update #118

Merged
merged 2 commits into from
Aug 8, 2019
Merged

fix: detect direction and prevent scrolling from trigger slide update #118

merged 2 commits into from
Aug 8, 2019

Conversation

logaretm
Copy link
Contributor

@logaretm logaretm commented Aug 6, 2019

This PR ensures hooper is aware of the direction of the drag, if the user drags vertically and the slider is configured to be horizontal (default) it should ignore the action.

This is done by comparing if deltaY is larger than deltaX, which will always be the case if they are indeed scrolling.

Requires more testing as this could introduce false positives.

closes #84

@logaretm logaretm merged commit 449dfb9 into baianat:master Aug 8, 2019
@logaretm logaretm deleted the fix/84 branch August 8, 2019 18:12
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.

shortDrag=false isn't a solution
1 participant