Still able to scroll
PyrokineticDarkElf opened this issue · comments
PyrokineticDarkElf commented
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.
Zachary Vorhies commented
yup same here.
Nicola Peluchetti commented
@Staples1010 @zackees did you find a solution for this?
PyrokineticDarkElf commented
@nicoladj77 Sadly no :(
Aleksey Makas commented
Try to add in your CSS:
body, html { height: 100%; }
And also it will be better to share the example.
rick commented
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