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

Event directlty fires when using scrolledUp and flex-direction: column-reverse; #394

Closed elmartino closed 2 years ago

elmartino commented 2 years ago

Your issue may already be reported! Please search on the issue track before creating one.

Expected Behavior

Event fires only when scrolled to the top.

Actual Behavior

Event instantly fires when starting to scroll up

Possible Solution

Not use flex-direction: column-reverse, but use javascript to sort this out (not fancy)

elmartino commented 2 years ago

Update: I managed to fix this by setting infiniteScrollUpDistance to -8 instead of 2