本文介绍了iPhone和iPad滚动结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在制作一些带有无限滚动的jQuery跨浏览器库我工作得很好但是在iPhone上(我想也在iPad上)而不是相等的值我有一些不成比例的值不匹配
I'm making some jQuery cross-browser gallery with infinite scroll i works great but on iPhone (i suppose also on iPad) instead equal values i have some disproportion values don't match
($(window).scrollTop() == ($(document).height() - $(window).height())
我只是想达到滚动结束,之后我可以调用AJAX脚本,还要记住两个手指擦拭缩放后值会发生变化。
i just want to reach the end of scrolling on that , after that i could invoke AJAX script, also have to keep in mind that values changing after two fingers wipe zoom.
推荐答案
您需要考虑。试试这个:
You need to account for the 60px URL text field on iPhone. Try this:
($(window).scrollTop() + 60 == ($(document).height() - $(window).height())
这篇关于iPhone和iPad滚动结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!