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

Scroll isn't locked on y-axis (on mobile) #27

Open
maximelebreton opened this issue Nov 6, 2023 · 0 comments
Open

Scroll isn't locked on y-axis (on mobile) #27

maximelebreton opened this issue Nov 6, 2023 · 0 comments

Comments

@maximelebreton
Copy link

Hello @freddie-nelson, and thanks for your work on this slider!

When you're on mobile, and on a page that can scroll, if you start to slide, the page scrolls with the slide, and I think thats a unexcepted behaviour.

I try to pass the preventDefault() event, but it doesn't seem to be transmitted.

The ideal would be to have an option to prevent scroll on x-axis, y-axis and both,
like:
preventScroll: true, x, y

Thanks!

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