Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable vertical bounce effect in an ipad web app

Is there a way to disable the bounce effect in a scrolling div?

So far I have tried these things but none worked. Please help!

How to disable vertical bounce/scroll on iPhone in a mobile web application

Can't disable bounce with UIScrollView and pagingEnabled=YES

ipad safari: disable scrolling, and bounce effect?

Disable UITableView vertical bounces when scrolling

And

http://www.iphonedevsdk.com/forum/iphone-sdk-development/996-turn-off-scrolling-bounces-uiwebview.html

Thanks!

like image 366
imhere Avatar asked Dec 20 '22 21:12

imhere


2 Answers

If you're using Cordova 1.7, just open the Cordova.plist file and set the key UIWebViewBounce to NO.

like image 127
perfect_element Avatar answered Dec 23 '22 09:12

perfect_element


Open your phoneGap project's config.xml file and change UIWebViewBounce from default true to false:

    <preference name="UIWebViewBounce" value="false" />

Can't imagine why the default is true...

like image 33
JOM Avatar answered Dec 23 '22 10:12

JOM