iPad / jQuery.animate(scroll) issues

你。 提交于 2019-12-01 11:30:53

I figured it out. iOS does not scroll the body, but it moves the viewport. This causes some undesired effects when jQuery tries to interact with it. The solution is to scroll a div instead of the body of the document.

DPF

scrollTop() and scrollLeft() aren't supported on iPad. Try window.pageYOffset and window.pageXOffset.

Not sure what is happening with the nav links freezing until manual scroll - but its not just you - I've seen it before.

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