body-scroll-lock icon indicating copy to clipboard operation
body-scroll-lock copied to clipboard

Still able to scroll

Open PyrokineticDarkElf opened this issue 3 years ago • 5 comments

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.

PyrokineticDarkElf avatar Jan 25 '22 17:01 PyrokineticDarkElf

yup same here.

zackees avatar Aug 24 '22 16:08 zackees

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

nicoladj77 avatar Oct 17 '22 21:10 nicoladj77

@nicoladj77 Sadly no :(

PyrokineticDarkElf avatar Oct 19 '22 09:10 PyrokineticDarkElf

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

Muskos avatar Mar 31 '23 15:03 Muskos

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

rick-liruixin avatar Apr 15 '23 07:04 rick-liruixin