在Phonegap IOS中停止过度滚动/反弹 [英] Stopping overscroll / bounce in Phonegap IOS
问题描述
我在 IOS (ipad) 上使用最新版本的 Phonegap,我似乎无法禁用整个应用程序上的垂直滚动/弹跳.我不介意内部元素,但是当您向上或向下滑动并且整个应用程序上下弹跳时,它看起来很奇怪.
我已经尝试在 .plist 中将 UIWebViewBounce
设置为 no
但这似乎没有做任何事情.
感谢帮助:)
您必须修改 config.xml 文件中的属性.只需将以下首选项设置为 true
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.
I've tried setting UIWebViewBounce
to no
in the .plist however that doesn't seem to have done anything.
Appreciate the help :)
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中停止过度滚动/反弹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!