willmcpo / body-scroll-lock

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

Scroll Lock Requires Target Element #127

Open joethegenius opened 5 years ago

joethegenius commented 5 years ago

I have a page that does NOT have an element I desire to remain scrollable once the page is scroll locked with iOS . I simply want to lock the page scroll. In order to work around this, I had to place an empty "display:none" element on the page and use it as the target element. Easy work around; however, tripped me up for a while.

ccchapman commented 4 years ago

This is a duplicate of #55.

rick-liruixin commented 1 year ago

They stopped the repairs. I had to do it myself, in the same way, with a new version of typeScript. And fix these problems for everyone to use.

npm i body-scroll-lock-upgrade

repair log,Refer to the releases page.