-
Notifications
You must be signed in to change notification settings - Fork 44
Releases: theKashey/react-remove-scroll
Releases · theKashey/react-remove-scroll
Shadow dom support
Bug fixes
- @csorfab resolved problem using ScrollLock with ShadowDom 👏 (#98 by @csorfab )
- scroll can be blocked on devices with altered zoom levels 🔎 ( cd24189 by @theKashey )
Assets 2
(very) various improvements
v2.2.0
v2.1.0
80% Bundle Size decrease*
Major version?
React 16.8 is now required, nothing else changed, nothing else added
Features
Yes
- blocking horizontal scroll
- parental scroll -
inertproperly
So why?
👉80% Bundle Size decrease*
if you want
- 🎣everything was rewritten in hooks. That simplifies the logic, make code more compact, but now the minimal React version is 16.8+
- 🚗a sidecar pattern has been used to split library code into the UI part(300b), and Effect part(1.5kb) part, which would be executed only after Lock activation.
The total size of 1.7kb, which is just a bit more that on kb. But UI part is just 300b, and that might have a huge (cumulative) difference.