JQuery Detect Scroll at Bottom

后端 未结 10 841
南方客
南方客 2021-01-30 09:58

I wish to achieve content load when the user scrolls to the bottom of the page.

I am having a problem. It works fine on desktop browsers but not on mobile. I have imple

10条回答
  •  灰色年华
    2021-01-30 10:16

    Have you added the meta tag for iphones which sets the content size to the viewport of the phone?

    
    

    EDIT:

    So I tried this on my phone (android, gingerbread) and the issue wasn't so much the code not working it was the content displayed does not force the page to scroll. As soon as I zoomed in and scrolled down more content dynamically loaded. You could try adding content until the content added is greater than $(window).height();

提交回复
热议问题