body-scroll-toggle
body-scroll-toggle copied to clipboard
Enables / disables scroll on the body
I saw in another comment that you have begun using this plugin lately (https://github.com/willmcpo/body-scroll-lock); it has a fantastic feature of setting the body's `padding-right` to `window.innerWidth - document.documentElement.clientWidth`. Would it...
When the script returns the user to the stored scroll position upon `bodyScroll.enable()`, the "inner workings" are very obvious when the site has native smooth scrolling enabled. To work around...
This has ramifications on code (scrollMonitor for instance) that detects whether something is in viewport in IE and FF. Specifically, everything (at least momentarily) gets detected as out of viewport.