我们正在使用worklight 6与jQuery移动开发一个应用程序。
在HTML页面中,智能手机或平板电脑上的用户使用夹点和缩放是正常的,即使在没有滚动(环境影响)的页面中也是如此。
我想知道如何在使用Worklight、jQuery移动、PhoneGap或Cordova时禁用这些效果。
下面的链接( iOS示例的图像)显示了滚动的问题。当我们使用缩放时,会显示相同的黑色背景:0222.JPG
发布于 2013-11-13 14:32:42
- Via jQuery:$(document).bind('touchmove',函数(E){ e.preventDefault();});
- Or w/out jQuery (pure JS):document.addEventListener('touchmove',函数(E){ e.preventDefault();},false);
- [Mobile overflow:scroll and overflow-scrolling: touch // prevent viewport "bounce"](https://stackoverflow.com/questions/15732466/mobile-overflowscroll-and-overflow-scrolling-touch-prevent-viewport-bounce)
- [Mobile Safari Viewport - Preventing Horizontal Scrolling?](https://stackoverflow.com/questions/5543495/mobile-safari-viewport-preventing-horizontal-scrolling)
发布于 2015-07-08 13:36:43
若要防止应用程序以工作光方式(MFP 7.0)滚动页面(UIWebView“弹跳”),请查找
apps\your_app_name\iphone\native\config.xml
并使
<preference name="DisallowOverscroll" value="true" />
https://stackoverflow.com/questions/19953775
复制相似问题