Skip to content

Releases: theKashey/react-remove-scroll

Shadow dom support

10 Oct 02:32
Compare
Choose a tag to compare

Bug fixes

(very) various improvements

03 Jul 08:21
Compare
Choose a tag to compare
  • add special treatment for textareas, fixes #74 (af8fd75)

  • do not prevent uncancelable events, fixes #8 (9d12786)

  • update react-remove-scroll-bar. Fixes #71 (3f51035)

  • add ref to the public interface (db99c0e)

  • correct React 18 integration (af8e23e)

  • correct range input behavior, fixes #64 (0bd6ca8)

  • correct lock behavior for RTL direction (23457a7)

  • Scroll working in RTL (fcae298)

  • Skip shadow root when traversing up the dom tree (eb6a5e7)

  • support CSP (60ce4bf)

v2.2.0

22 Oct 23:23
Compare
Choose a tag to compare

Features

  • add allowPinchZoom property, fixes #17 (2945796)

v2.1.0

22 Oct 23:24
Compare
Choose a tag to compare

Features

80% Bundle Size decrease*

29 Jun 05:35
Compare
Choose a tag to compare

Major version?

React 16.8 is now required, nothing else changed, nothing else added

Features

Yes

  • blocking horizontal scroll
  • parental scroll - inert properly

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.