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

前端 未结 7 945
佛祖请我去吃肉
佛祖请我去吃肉 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:42

    Let me add my two cents, had exact same problem, different solution! I have been debugging ng-infinite-scroll all day. At one point, I realized that javascript reports $(window).height() == $(document).height() which makes no sense whatsoever.

    I did a bit googling, and it happens when you're missing DOCTYPE: jquery $(window).height() is returning the document height

    But, that was not enough! My DOCTYPE was eaten by browser, at one point. You can read further: Too big number of $(window).height() on wordpress

提交回复
热议问题