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 one axis drag round up #48

Open
Hejtmus opened this issue Oct 18, 2022 · 0 comments
Open

Only one axis drag round up #48

Hejtmus opened this issue Oct 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Hejtmus
Copy link
Owner

Hejtmus commented Oct 18, 2022

Current implementation of scroll allows scrolling in 2 axes
This behavior may be undesirable for some users. For desktops is easier to exceed vertical threshold (also applies for horizontal scroll) as screen height is less than wight and vice versa for mobile users.

Describe the solution you'd like
Comparing X and Y deltas and limit drag round (when delta exceeds scroll threshold) to one direction, higher delta will indicate in which axis will be scroll done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant