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 towin.scrollTop()
, then does nothing because the contents of the blockif
is empty. You yourself have written or picked up the excerpt from somewhere?– vinibrsl
In case, inside the IF i Gero the new content, the problem is even in the scroll part, why on desktop works.
– Lucas Caresia