mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-20 23:50:36 +03:00
31 lines
1.3 KiB
Markdown
31 lines
1.3 KiB
Markdown
# 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)
|
|
- `OverlayScrollbarsComponent` accepts now the `defer` property
|
|
- `useOverlayScrollbars` params accept now the `defer` key
|
|
- `useOverlayScrollbars` will now always try to destroy the instance if the component unmounts.
|
|
|
|
### Breaking Changes
|
|
|
|
- Because initialization can be deferred now, the `initialize` function of the `useOverlayScrollbars` composable isn't returning the instance anymore. Use the `instance` function of the `useOverlayScrollbars` composable instead.
|
|
|
|
## 0.4.0
|
|
|
|
Depends on `OverlayScrollbars` version `^2.0.0` and `Vue` version `^3.2.25`.
|
|
The component was rewritten using `script setup`.
|
|
|
|
### Features
|
|
|
|
- `OverlayScrollbarsComponent` accepts now the `events` property
|
|
- `OverlayScrollbarsComponent` accepts now the `element` property
|
|
- `OverlayScrollbarsComponent` emits now all `OverlayScrollbars` events as "native" Vue events
|
|
- The `useOverlayScrollbars` composable was added for advanced usage
|
|
|
|
### Breaking Changes
|
|
|
|
- The `extensions` property is removed from `OverlayScrollbarsComponent`
|
|
- The `osTarget()` function from the `OverlayScrollbarsComponent` `ref` is renamed to `getElement()` |