MurhafSousli / ngx-scrollbar

Custom overlay-scrollbars with native scrolling mechanism
https://ngx-scrollbar.netlify.app/
MIT License
618 stars 99 forks source link

No scroll event is working with ng-scrollbar #479

Closed husenindia closed 1 year ago

husenindia commented 1 year ago

I am looking for Scroll event.

I need some calculation on horizontal scroll event.

Tried following combination but not working.

<ng-scrollbar (scrolled)="customFunction()"

<ng-scrollbar (horizontalScrolled)="customFunction()"

I am using following version of ngx-scrollbar

MurhafSousli commented 1 year ago

Those properties are not outputs of the components, they are properties that can be accessed by the reference of the scrollbar, see the docs on how to use it https://github.com/MurhafSousli/ngx-scrollbar/wiki/scroll-event