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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to block scroll on backdrop? #20

Closed
vbylen opened this issue Apr 20, 2021 · 2 comments
Closed

Option to block scroll on backdrop? #20

vbylen opened this issue Apr 20, 2021 · 2 comments

Comments

@vbylen
Copy link

vbylen commented Apr 20, 2021

Would be nice if there was a prop for this 馃グ

@Temzasse
Copy link
Owner

I think you should be able to achieve this without any modifications to the library itself by setting touch-action: none; to the backdrop that you render.

@vbylen
Copy link
Author

vbylen commented May 30, 2021

I used this library and it works very well even on safari iOS which is usually a troublemaker

https://github.com/theKashey/react-remove-scroll

@vbylen vbylen closed this as completed Jun 3, 2021
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

2 participants