ngInfiniteScroll - loadMore() method gets called on every mouse-scroll

前端 未结 7 931
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 12:13

Solution below on the comments.

Problem: My loadMore() method gets executed on every container\'s scroll.

Meaning: loa

7条回答
  •  不知归路
    2021-02-02 12:30

    Put a lot of time just to figure it out. For me infinite scroll's method was called infinitely, so i did a bit of research & came to conclusion that it was happening beacause the height of my "div" for infinite scroll in my code was 0, was not increasing at all, so it was thinking all the time that the user was at the end of the page. So the solution for me was to add a "clearfix" html class to the next element of the "div" for infinite scroll.

提交回复
热议问题