Stop scrolling over edge of screen on iOS web apps?

那年仲夏 提交于 2019-12-11 01:26:52

问题


Working on an iOS web app. The user can scroll the content of the page up and down. However, is there a way to stop the screen from being dragged so far that the grey background becomes visible? This is replicable by opening any webpage in mobile safari and pulling the page down.


回答1:


You can use a javascript library like pastrykit, or iScroll, to handle the scrolling instead of the default, similarly to how the mobile gmail webpage works, or the iPhone User Guide.



来源:https://stackoverflow.com/questions/5214348/stop-scrolling-over-edge-of-screen-on-ios-web-apps

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