Getting Infinite-Scroll by paulirish to work on iPhone

断了今生、忘了曾经 提交于 2019-12-21 02:57:07

问题


I've been implementing Infinite-Scroll by Paul Irish on my site. It works on desktop browsers, but on mobile (iPhone specifically) it doesn't straight away. The work around is zooming in slightly, that makes the scroll event fire which triggers infinite scroll.

Also see the issue report here: https://github.com/paulirish/infinite-scroll/issues/3

My question is: is there a solution for this?

I've noticed Tumblr makes infinite-scroll work without a workaround.

If you were to check http://youworkit.tumblr.com/ on iPhone, then switch from the mobile to the standard desktop view, infinite-scroll does work without zooming in.

Any thoughts?


回答1:


This works for me:

JQuery Detect Scroll at Bottom

<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">


来源:https://stackoverflow.com/questions/10952179/getting-infinite-scroll-by-paulirish-to-work-on-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!