在Phonegap IOS中停止过度滚动/反弹 [英] Stopping overscroll / bounce in Phonegap IOS

查看:26
本文介绍了在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屋!

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