orizens / ngx-infinite-scroll

Infinite Scroll Directive for Angular
https://www.npmjs.com/package/ngx-infinite-scroll
MIT License
1.25k stars 224 forks source link

Repeated events onScrollDown #426

Closed elvispdosreis closed 4 months ago

elvispdosreis commented 1 year ago

How do I prevent this type of event?

<div class="table-responsive-sm text-nowrap"
                 infinite-scroll
                 [infiniteScrollDistance]="scrollDistance"
                 [infiniteScrollUpDistance]="scrollUpDistance"
                 [infiniteScrollThrottle]="throttle"
                 (scrolled)="onScrollDown()"
                 [alwaysCallback]="true"
                 [scrollWindow]="true"
            >

image

angelaki commented 1 year ago

Imho the directive is just responsible for triggering the event on scroll down. If there's nothing to do, just ignore the event / unsubscribe?