orizens / ngx-infinite-scroll

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

First Scroll of a Small Infinite-Scroll #371

Closed rahyaft closed 3 years ago

rahyaft commented 3 years ago

I am trying to implement a scrollbar that has paging capabilities. Everything works well and I am able to add elements to my div when the scrollbar reaches near the bottom. But there is a problem when there are very few initial elements in my div (enough to fit inside the div without needing a scrollbar) and the scrollbar events do not work at all. What should I do?

orizens commented 3 years ago

you should load more items and flip the "disable" property after loading - so ngxis recreates.