Infinite scroll for mobile

Asked

Viewed 61 times

0

I made a scroll infinite and worked perfectly, but when I went to test on a cell phone it just didn’t work, the method I used was this:

win.scroll(function() 
    {
        if($(document).height() - win.height() == win.scrollTop()) 
        {
        }
});
  • Taking a brief look at the function: if $(document).height() - win.height() is equal to win.scrollTop(), then does nothing because the contents of the block if is empty. You yourself have written or picked up the excerpt from somewhere?

  • In case, inside the IF i Gero the new content, the problem is even in the scroll part, why on desktop works.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.