iPad防止页面拖动 [英] iPad prevent page drag

查看:319
本文介绍了iPad防止页面拖动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用phonegap编写iPad应用程序(使用HTML5和jQuery的简单应用程序)。问题是应用程序窗口是可拖动的,如图所示,当我拖动窗口下来它下来,当我离开窗口,它自动上升。我不想这种行为。



尝试将 UIWebViewBounce 设置为<$ c> $ c> $



请检查此链接: 如何防止应用在手机间隙中运行



注意:此解决方案可以禁用应用程序的横向模式。



希望这有帮助,让我知道这是否适合你mate


I am writing an application for iPad using phonegap (Simple application using HTML5 and jQuery). The problem is the application window is draggable, as seen in image when I drag window down it comes down and when I leave window it goes up automatically. I don't want this behavior.

解决方案

Try to set the UIWebViewBounce to NO in your file Cordova.plist.

Check this link: How to prevent app running in phone-gap from scrolling vertically?

Note: with this solution, you may disable the "landscape mode" of your app.

Hope this helps, let me know if this works for you mate

这篇关于iPad防止页面拖动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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