willmcpo / body-scroll-lock

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

Remove timeout when setting overflow and padding #199

Closed helgenlechner closed 3 years ago

helgenlechner commented 3 years ago

The original workaround causes an issue with nested scrollLocks. Due to the timeouts, the overflow and padding don't get read/set correctly.

The original Safari Performance bug seems to have been fixed in the meantime. I can't reproduce it anymore.