Releases: MurhafSousli/ngx-scrollbar
Releases · MurhafSousli/ngx-scrollbar
v16.1.1
What's Changed
- fix: Bug with
visibility="visible"
closes #674. - refactor: In effects, move
onCleanup
function insideuntracked
function in thePointerEventsAdapter
class. - refactor: Use
from
instead offromPromise
to convert a promise to observable.
Full Changelog: v16.1.0...v16.1.1
v16.1.0
What's Changed
- feat: Disable / Suppress the scroll bar during runtime, in #658.
- fix: Wrong track size when used in 3rd party dropdown components, in #669.
- fix: Scrollbar buttons icons not showing in Safari, in #664.
Full Changelog: v16.0.0...v16.1.0
v16.0.0
What's Changed
- feat:
scrollViewport
directive can be a descent child, not necessarily a direct child of<ng-scrollbar externalViewport>
. - feat: Add
start
,end
,right
,bottom
andcenter
options toscrollToElement
(supports RTL), closes #637. - feat: Add
syncSpacer
directive that is applied on<ng-scrollbar externalViewport>
component to sync spacer element with content dimension changes. - fix:
ResizeObserver
loop completed with undelivered notifications, closes #650. - enhance: Improve scrollbar rendering speed that uses
externalViewport
such as integrating with 3rd party library. - enhance: Use the shared resize observer from the CDK to do the necessary calculation.
- enhance:
asyncDetection
Use the content observer service from the CDK to detect viewport and content wrapper elements. - enhance: use
--scrollbar-thumb-hover-color
not only when hovered but also when active. - enhance:
track
andthumb
controls uses more accurate measures usinggetBoundingClientRect
instead of direct size properties. - refactor: Switch to
InputSignal
instead of standards inputs across components. - refactor: Use effects instead of
ngOnInit
to initialize the scrollbar component. - refactor: Remove
scrollViewport
directive fromng-scrollbar
hostDirectives because it's redundant. - refactor: the
TrackAdapter
now uses viewport & content dimension signals to update the track size instead ofResizeObserver
events.
Breaking changes
- Minimum compatibility is Angular v17.3.0
- The directive
cdkVirtualScrollViewport
no longer acceptsauto
value, instead usesyncSpacer
- Before
<ng-scrollbar externalViewport cdkVirtualScrollViewport="auto">
- After
<ng-scrollbar externalViewport cdkVirtualScrollViewport syncSpacer>
- Before
Full Changelog: v15.1.3...v16.0.0
v16.0.0-beta.2
What's Changed
- feat:
scrollViewport
directive can be a descent child, not necessarily a direct child of<ng-scrollbar externalViewport>
. - feat: Add
start
,end
,right
,bottom
andcenter
options toscrollToElement
(supports RTL), closes #637. - feat: Add
syncSpacer
directive that is applied on<ng-scrollbar externalViewport>
component to sync spacer element with content dimension changes. - fix:
ResizeObserver
loop completed with undelivered notifications, closes #650. - enhance: Improve scrollbar rendering speed that uses
externalViewport
such as integrating with 3rd party library. - enhance: Use the shared resize observer from the CDK to do the necessary calculation.
- enhance:
asyncDetection
Use the content observer service from the CDK to detect viewport and content wrapper elements. - enhance: use
--scrollbar-thumb-hover-color
not only when hovered but also when active. - enhance:
track
andthumb
controls uses more accurate measures usinggetBoundingClientRect
instead of direct size properties. - refactor: Switch to
InputSignal
instead of standards inputs across components. - refactor: Use effects instead of
ngOnInit
to initialize the scrollbar component. - refactor: Remove
scrollViewport
directive fromng-scrollbar
hostDirectives because it's redundant. - refactor: the
TrackAdapter
now uses viewport & content dimension signals to update the track size instead ofResizeObserver
events.
Breaking changes
- Minimum compatibility is Angular v17.3.0
Full Changelog: v15.1.3...v16.0.0-beta.2
v15.1.3
What's Changed
- enhance: Use injection factory for
NG_SCROLLBAR_OPTIONS
andNG_SCROLLBAR_POLYFILL
to avoid merging custom options with the default options for every scrollbar component. - refactor: Use
self
option when injectingNgScrollbar
component in all addon directives. - fix: Scrollbar with
externalViewport
attached scrollbar not destroyed properly causing memory leak, closes #611.
Full Changelog: v15.1.2...v15.1.3
v15.1.2
What's Changed
- Set the latest fixed polyfill CDN as default.
- Update Typescript to v5.5.4, closes #633.
Full Changelog: v15.1.1...v15.1.2
v15.1.1
v15.1.0
What's Changed
- feat: Add a new option
hoverOffset
to activate hover effect on the offset area around the scrollbar, closes #616. - fix: Scrollbar thumb color is not changing on hover, closes #625.
Full Changelog: v15.0.4...v15.1.0
v15.0.4
What's Changed
- fix: global Angular app styles gets broken in Firefox, closes #615.
Full Changelog: v15.0.3...v15.0.4
v15.0.3
What's Changed
- feat: Ability to set the scrollbar CSS variables from
:root
or any parent selector, closes #591 and #606.
Full Changelog: v15.0.1...v15.0.2, v15.0.2...v15.0.3