willmcpo / body-scroll-lock

Body scroll locking that just works with everything 😏
MIT License
4.04k stars 338 forks source link

Still able to scroll #243

Open PyrokineticDarkElf opened 2 years ago

PyrokineticDarkElf commented 2 years ago

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 commented 1 year ago

yup same here.

nicoladj77 commented 1 year ago

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

PyrokineticDarkElf commented 1 year ago

@nicoladj77 Sadly no :(

Muskos commented 1 year ago

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

rick-liruixin commented 1 year ago

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