停止在iOS Web应用程序的屏幕边缘上滚动吗? [英] Stop scrolling over edge of screen on iOS web apps?

查看:84
本文介绍了停止在iOS Web应用程序的屏幕边缘上滚动吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS Web应用程序上工作.用户可以上下滚动页面的内容.但是,是否有一种方法可以阻止屏幕拖动到足以使灰色背景可见的程度?通过在移动Safari浏览器中打开任何网页,然后将其拉下即可复制.

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.

推荐答案

您可以使用pastrykit或iScroll之类的javascript库来处理滚动,而不是使用默认方法,类似于移动gmail网页或iPhone的工作方式用户指南.

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.

这篇关于停止在iOS Web应用程序的屏幕边缘上滚动吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆