iPad prevent page drag

邮差的信 提交于 2019-12-11 10:52:59

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/12511485/ipad-prevent-page-drag

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