Releases: MurhafSousli/ngx-scrollbar
Releases · MurhafSousli/ngx-scrollbar
v15.0.1
What's Changed
- fix: SSR with CDK Virtual Scroll -
ResizeObserver
is not defined error thrown, closes #603. - regret: Remove the
requestAnimationFrame
before emitting toafterInit
andafterUpdate
which was added to fix the unit tests.
Full Changelog: v15.0.0...v15.0.1
v15.0.0
v14.1.1
What's Changed
- feat: Ship the scroll timeline polyfill with the package.
- fix: Content Security Policy violation for script-src, closes #572.
New Contributors 🎉
- @Smarthard made their first contribution in #582
Full Changelog: v14.1.0...v14.1.1
v14.1.0
What's Changed
- fix:
cdkVirtualScrollViewport
got dependency of @angular/material/select, closes in #573. - fix:
cdkVirtualScrollViewport
horizontal scrollbar not showing when orientation is vertical, closes in #571 - fix:
ScrollToElement
function wrong scroll position, closes in #574 - fix: Remove height and width attributes from the scrollbar SVG icons.
Breaking changes
- Remove
ngx-scrollbar/utils
package and split its directives into 2 sub-packagesngx-scrollbar/cdk
andngx-scrollbar/mat
to avoid wrong dependency.
v14.0.0
What's Changed
- fix: Scrollbar buttons - arrow icons are not being displayed in Safari mobile.
v14.0.0-beta.8
What's Changed
- feat: Support complex markup with
scrollToElement
function, closes #268. - feat: Add
provideSmoothScrollOptions
function to ease overriding the default smooth scroll options. - refactor: Enhance and simplify smooth scroll manager.
- refactor: Enhance track drag code and functionality.
- refactor: Simplify and reuse code in thumb drag code.
- refactor: Reuse code in scrollbar button component.
- regret: Use
offsetWidth
andoffsetHeight
again instead ofgetBoundingClientRect
due to incorrect value when scrollbar is used in an overlay such asmatSelect
. - fix:
(reachedEnd)
does not work without subscribing to(reachedBottom)
.
Breaking changes:
- Remove
NgScrollbarReachModule
. - Rename the directive
MatSelectViewport
toNgScrollbarMatSelectViewport
.
v14.0.0-beta.6
What's Changed
- feat: Add scrollbar buttons using
buttons
options, closes #465. - refactor: Reuse similar code in track, thumb and buttons directives.
- refactor: content wrapper selector should be direct child of the viewport.
- refactor: Use
swithcMap
instead ofexpand
for track long ongoing pointer down event. - refactor: Only use
getRtlScrollAxisType
once on initialization inSmoothScrollManager
. - refactor:
matSelectViewport
use instant scroll function to scroll to the selected item in the list. - refactor: Use
getBoundingClientRect
in all directives instead ofclientWidth
andclientHeight
for high precision calculation.
Full Changelog: v14.0.0-beta.5...v14.0.0-beta.6
v14.0.0-beta.5
What's Changed
- fix: Should not initialize the scrollbar if
externalSpacer
selector was set but was not found. - refactor: Unify properties in track and thumb directives.
- refactor: When
asyncDecetion="true"
reset viewport adapter properties if viewport / content wrapper elements are removed. - enhance: Add missing unit tests,
v14.0.0-beta.4
- feat: Added support for dynamically initializing scrollbars for content rendered async (3rd party libraries) using
asyncDetection="auto"
. - fix: Wrong mobile attribute setter (was using
SAFARI
flag instead ofIOS
). - enhance: Use
MutationObserver
instead ofngAfterViewChecked
to detect content inasyncDetection
directive. - refactor: Improve error handling when selectors was not found in
<ng-scrollbar externalViewport>
component. - refactor: Remove the default value for track transition.
- refactor: Add additional CSS variables to customize the fade effect when
visibility="hover"
:--scrollbar-hover-opacity-transition-enter-duration
.--scrollbar-hover-opacity-transition-leave-duration
.--scrollbar-hover-opacity-transition-leave-delay
.
- refactor: The following CSS variables were removed:
--scrollbar-hover-transition-duration
.--scrollbar-hover-transition-delay
.
Breaking changes
- Rename the option
clickScrollDuration
totrackScrollDuration
.
v14.0.0-beta.3
- fix: In RTL, horizontal scrollbar track click does not work properly, closes #548.
- fix: PrimeNg integration, native scrollbar still appears in Safari browsers.
- refactor: Enable scrollbar interactions on mobile devices.