在Phonegap IOS停止overscroll / bounce [英] Stopping overscroll / bounce in Phonegap IOS

查看:185
本文介绍了在Phonegap IOS停止overscroll / bounce的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用IOS(ipad)上的最新版本的Phonegap,我似乎无法禁用在整个应用程序的垂直overscroll /反弹。我不介意它在内部元素,但它看起来很奇怪,当你向上或向下滑动,整个应用程序反弹上下。

I am using the latest version of Phonegap on IOS (ipad) and I can't seem to disable the vertical overscroll/bounce on the whole app. I don't mind it on inner elements but it looks rather strange when you swipe up or down and the whole app bounces up and down.

我尝试设置 UIWebViewBounce 没有在.plist中似乎没有做任何事情。

I've tried setting UIWebViewBounce to no in the .plist however that doesn't seem to have done anything.

欣赏帮助:)

推荐答案

您必须修改config.xml文件中的属性。
只需设置以下首选项 true

You have to modify a property in your config.xml file. Just set the following preference to true

<preference name="DisallowOverscroll" value="true" />

这篇关于在Phonegap IOS停止overscroll / bounce的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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