Hi ,
I am using ngx- infinite-scroll in a project , and I am having some problems . It works when I scroll down , or/and scroll up , for the first time . But when I scroll down or up , again , for a second time , the event does not get triggered anymore .
Can you kindly help me to solve this problem ?
Thank you
please repost using the issue template
I found a temporary solution that worked for my situation:
@ViewChild(InfiniteScrollDirective) infiniteScroll: InfiniteScrollDirective;this.infiniteScroll.ngOnDestroy();this.infiniteScroll.setup();Thanks @Josh-TX for the solution, I am just elaborating more here for Angular 6 and Typescript users
Then on onScroll function call two methods
@AmitJain628 after i apply the solution, the event will trigger when i scrolled up. That's weird.
@McSam94 I am also facing the same issue, even it is triggering for scrolling up, which is not weird
use alwaysCallback=true
@AmitJain628 after i apply the solution, the event will trigger when i scrolled up. That's weird.
Hi @McSam94 , I am facing the same issue. Event is getting triggered even when I am scrolling up. have you got any work-around for it ?
Most helpful comment
I found a temporary solution that worked for my situation:
@ViewChild(InfiniteScrollDirective) infiniteScroll: InfiniteScrollDirective;this.infiniteScroll.ngOnDestroy();this.infiniteScroll.setup();