- Fix
ngOnDestroy
in case there is no active instance. #670
- Correctly resolve the entry file(s) in the
package.json
.
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
andOverlayScrollbarsDirective
accept now thedefer
property- Events are now run in the
NgZone
#516
- Because initialization can be deferred now, the
osInitialize
function of theOverlayScrollbarsDirective
isn't returning the instance anymore. Use theosInstance
function of theOverlayScrollbarsDirective
instead. - Depends now on
Angular
version>=13.0.0
.
Depends on OverlayScrollbars
version ^2.0.0
and Angular
version >=12.0.0
.
- The selector for the
OverlayScrollbarsComponent
is nowoverlay-scrollbars
or[overlay-scrollbars]
OverlayScrollbarsComponent
has now theevents
propertyOverlayScrollbarsComponent
emits now allOverlayScrollbars
events as "native" Angular events- The
OverlayScrollbarsDirective
was added for advanced usage
- The
extensions
property is removed fromOverlayScrollbarsComponent
- The
osTarget()
function from theOverlayScrollbarsComponent
ref
is renamed togetElement()