body-scroll-lock-upgrade
Version:
Enables body scroll locking (for iOS Mobile and Tablet, Android, desktop Safari/Chrome/Firefox) without breaking scrolling of a target element (eg. modal/lightbox/flyouts/nav-menus)
37 lines (21 loc) • 752 B
Markdown
- optimization:document.documentElement.clientWidth -> document.documentElement.getBoundingClientRect().width
https://github.com/rick-liruixin/body-scroll-lock-upgrade/issues/16
- add umd
- Added a vue3 code example
-
Fix width issues on iOS Safari
Fix Scrolling enabled in browser as soon as enableBodyScroll is called once, regardless of number of locks
Fix When enabled, scrolls to top of document in iOS Safari on Version: 4.0.0-beta.0
Fix safari browser scroll bottom Unable to scroll up
with a new version of typeScript
Added a react hook code example