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

Trigger event of no scrollbar is present #428

Closed angelaki closed 4 months ago

angelaki commented 1 year ago

I'm facing a scenario, where my initially loaded items (on a pretty huge screen) are not enough to show a scrollbar. In my opinion it would be great, if the directive would fire a event here too (if immediateCheck is set to true).

What do you think? I'd offer a PR, if interessted.

angelaki commented 1 year ago

Just saw that this behavior actually isn't implemented (https://github.com/orizens/ngx-infinite-scroll/issues/341). Is there any reason? Could do that, too.

ravindUwU commented 1 year ago

As an interim solution, I added some "padding" to the bottom of the scrollable parent to ensure that the container stays scrollable. Pinging #341 .

Demo: https://stackblitz.com/edit/ravinduwu-ngx-infinite-scroll-parent-taller-than-items?file=src%2Fapp.component.html