Answer the question
In order to leave comments, you need to log in
Scroll tracking in Mobile Safari?
How to track with jquery in mobile safari what is scrolling down to load new content?
This is not working on iphone:
$(window).scroll(function(){<br>
<br>
if ($(window).scrollTop() == $(document).height() - $(window).height()){<br>
<br>
alert('bottom');<br>
<br>
}<br>
<br>
})<br>
Answer the question
In order to leave comments, you need to log in
1. In such cases, don't use "==", otherwise nothing will work (">") because of the 1px difference.
2. You need to load content a little earlier by ~ 50-100px
if($(window).scrollTop() > $(document).height() - $(window).height() - 50) ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question