- enhance(NgScrollbar): Keep native scrollbars hidden when the component is disabled,closes #88 in 4762a7e and 3ef3d8a.
- enhance(NgScrollbar): Push the native scrollbars 1px more to fix its appearance in Edge browser.
- refactor(NgScrollbarThumb): Refactor scrollbar initializer function, in 5dbcc22.
- feat(NgScrollbar): Add
[overlay]
input to make scrollbars position appears over content. - feat(NgScrollbar): Add
[disabled]
input to enable/disable the custom scrollbars, in 9ac7f8d. - feat(NgScrollbar): Add
characterData: true
to MutationObserver to update on text changes, remove the need to manually update the scrollbars. - fix(NgScrollbar): Content goes out of the container when scroll bar is not present, closes #86 in c8d9505.
- enhance(NgScrollbar): Don't update scrollbar if disabled, in 7f154e9.
- enhance(NgScrollbarThumb): Make sure the last emit from MutationObserver is not ignored by
throttleTime
, in fff2083. - refactor(NgScrollbar, NgScrollbarThumb): Set scrollbar display value from parent component.
- refactor(NgScrollbarThumb): Use rxjs syntax to initialize scrollbar thumbnail size, in f201736.
- enhance(NgScrollbar): Use
animationFrameScheduler
to set scrollbar thumb position, in 717d221. - enhance(NgScrollbar): Add a smooth transition on scrollbar thumbnail size, in 8da5c31.
- fix(NgScrollbar): Enable back the scrollbar after it was disabled, closes #81 in 9ce2f56.
- refactor(NgScrollbar): Remove
padding
from view port styles and use containerbottom
andright
to hide the native scrollbars, in 0f98686. - regret(NgScrollbar): return
height: 100%
on component styles.
- feat(NgScrollbar, SmoothScroll): Add offset value in
scrollToElement()
in 937374c. - fix(NgScrollbar): Fix scrollbar view on dynamic height, closes #72 in 3ea592f.
- fix(NgScrollbar): Fix scrollbar dragging in prod, in f109322.
- enhance(NgScrollbar): Hide the scrollbar when its thumbnail size is 0, in 55f37e6.
- enhance(NgScrollbarThumb): Move scrollbar thumb styles to
NgScrollbar
component styles, removes the need to add!important
to override the styles, in 8b59b64. - enhance(NgScrollbarThumb): Use
OnPush
change detection, in b05ee45.
- feat(SmoothScroll): Add
[smoothScroll]
directive which can be imported independently e.g.import {SmoothScrollModule} from 'ngx-scrollbar'
. - feat(NgScrollbar): Add
[disableOnBreakpoints]
to disable the custom scrollbars on certain breakpoints. - refactor(NgScrollbar): Improve performance by removing
(scrollState)
output which causes a change detection on each emit. - fix(NgScrollbar): Fallback to native scrollbars on mobile, closes #59.
- enhance(NgScrollbar): Improve component default styles.
- The component class name has changed from
ScrollbarComponent
toNgScrollbar
. - The module class name has changed from
ScrollbarModule
toNgScrollbarModule
. (scrollState)
output is removed, to get the scroll event use the component ref, example:
@ViewChild(NgScrollbar) ngScrollbar: NgScrollbar;
ngScrollbar.scrollable.elementScrolled().subscribe(e => console.log(e))
- feat(ScrollbarComponent): All scrollTo functions return an observable that emits when the scroll function is done.
- feat(ScrollbarComponent): Add
scrollTo
andscrollToElement
functions, in 6acdf70. - feat(ScrollbarComponent): Add cross-browser smooth scroll, in 6acdf70.
- fix peerDependencies for Angular >= 6, in 6c78229.
- fix(ScrollbarComponent): Scrollbar are not shown on init, closes #48 in bac70d5.
- refactor(ScrollbarComponent): Use right and bottom to hide the native scrollbars, in 91b6b6f.
- refactor(ScrollbarComponent): Encapsulate component styles, in 0fd9b92.
- enhance(ScrollbarComponent): Use CDK ScrollModule instead of native scroll event, in d5d59b3.
- Must subscribe on any scrollTo function you use, e.g.
ScrollbarComponent.scrollToBottom().subscribe()
- fix(ScrollbarComponent): fix SSR by checking if the
MutationObserver
code is running on the browser, in 86adf42. - refactor(ScrollbarComponent): General refactor, in 3d406a3.
- Update dependencies
- feat(ScrollbarComponent): Adds
scrollToTop
,scrollToBottom
,scrollToRight
,scrollToLeft
functions, closes #39 in 664982d.
- refactor(ScrollbarComponent): rxjs style for scrollbar thumb workers events in #36
- Remove pointer from scrollbar to default
- Fixes a bug: Check if the subscription is defined before unsubscribing, closes #18.
- Regret: use renderer again, remove the state architecture.
- Fix wrong subscriptions, closes #12.
- Fix the tiny delay before rendering scrollbars thumbnails (which was introduced in v1.5.0).
- Refactor: bind a state instead of using renderer
- Refactor: Make classes inputs reactive
- Improve performance: run code using NgZone
- Support Universal: remove unsupported interfaces in Universal like
MouseEvent
- Refactor with RxJS 5.5 pipe style
- Feature(autoUpdate): Add
[autoUpdate]
option to automatically update on content changes - Feature(Update function): Add
update()
function to manually update scrollbars - Enhancement: Add
height: 100%
to the component style
- Feature(custom classes)
[viewClass]
,[barClass]
and[thumbClass]
inputs to add custom classes
- Feature(ScrollTo function): Add animated scroll to a specific position
- Fix(scrollbar positions when content is changed)
- Refactor(Scrollbar Component)
- Fix(dragging scrollbars) closes #3
- Change
trackX
input tofalse
by default
- Remove
characterData: true
from the MutationObserver which was causing a issue in nested scrollbars - Use
ViewEncapsulation.None
for the component style
- Initial release