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

Still able to scroll #243

Open
PyrokineticDarkElf opened this issue Jan 25, 2022 · 5 comments
Open

Still able to scroll #243

PyrokineticDarkElf opened this issue Jan 25, 2022 · 5 comments

Comments

@PyrokineticDarkElf
Copy link

I've tried this on Codepen and a simple page seems to work fine.

When I add it to my website, the script runs and the overflow style is applied to the body, but, I'm still able to scroll up and down the page? (Win 10 Chrome v97.0.4692.99)

Happy to provide a link privately.

@zackees
Copy link

zackees commented Aug 24, 2022

yup same here.

@nicoladj77
Copy link

@Staples1010 @zackees did you find a solution for this?

@PyrokineticDarkElf
Copy link
Author

@nicoladj77 Sadly no :(

@Muskos
Copy link

Muskos commented Mar 31, 2023

Try to add in your CSS:
body, html { height: 100%; }
And also it will be better to share the example.

@rick-liruixin
Copy link

Try it with this package. If it doesn't work, describe the problem in detail and I'll fix it

npm i body-scroll-lock-upgrade

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

5 participants