mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-06 03:42:27 +03:00
1.2 KiB
1.2 KiB
Changelog
0.5.0
Features
Added the possibility to defer the initialization to a point in time when the browser is idle. (or to the next frame if window.requestIdleCallback is not supported)
OverlayScrollbarsComponentaccepts now thedeferpropertyuseOverlayScrollbarsparams accept now thedeferkeyuseOverlayScrollbarswill now always try to destroy the instance if the component unmounts.
Breaking Changes
- Because initialization can be deferred now, the
initializefunction of theuseOverlayScrollbarshook isn't returning the instance anymore. Use theinstancefunction of theuseOverlayScrollbarshook instead.
0.4.0
Depends on OverlayScrollbars version ^2.0.0 and React version >=16.8.0.
The component was rewritten using hooks. (#218)
Features
OverlayScrollbarsComponentaccepts now theeventspropertyOverlayScrollbarsComponentaccepts now theelementproperty- The
useOverlayScrollbarshook was added for advanced usage
Breaking Changes
- The
extensionsproperty is removed fromOverlayScrollbarsComponent - The
osTarget()function from theOverlayScrollbarsComponentrefis renamed togetElement()