-
Notifications
You must be signed in to change notification settings - Fork 13
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
prevent scroll is not working in mobile #31
Comments
Hi, as you can see in this line
preventScroll prop is only used in the wheel event. |
Is there anyway to prevent user scrolling even in mobile? |
if you can, could you exactly tell me what you want to do? |
Hi @Etto91 , the package is great and really useful. I was going to open a new issue but saw that this one is really similar. I think that what the other user is saying is that it would be useful to also prevent scrolling when the user swipes. Other thing, taking into account accesibility issues, would be to also be able to prevent scroll when using the keyboard, so that the UX is also the same for those users. This could also be a separate prop. |
Hi @eliezerbaschkier, thanks for clearing that up. When I have some time I'll do this enhancement. if you want feel free to open a pr :) |
I tried this package. I used the prevent scroll attribute. It is working fine in desktop but when i am trying in my mobile I was able to scroll. It is not supported in mobile?
The text was updated successfully, but these errors were encountered: