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" />
The accepted answer did not work for me, I had to set UIWebViewBounce
to false
:
<preference name="UIWebViewBounce" value="false" />
now for phonegap 3.0 above version use below syntex in config.xml file and it will works 100%
<preference name="DisallowOverscroll" value="true"/>
If you're adding <preference name="DisallowOverscroll" value="true"/>
to config.xml without any luck, you may be changing the wrong file. Instead, search the entire phonegap directory for "DisallowOverscroll." You should find several instances. Change those to true.
Cheers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With