Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent UIWebViewBounce, "rubber banding"

Using ionicframework with Cordova CLI v3.4

I'm using the following preferences in my config.xml file(s).

<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />

Compiling through the CLI and XCode doesn't seem to fix anything.

I then did a search for DisallowOverscroll project wide and made sure all values were set to true

I'm still getting rubberbanding though on my view. Anyone have an idea what could be the issue?

Thanks!

like image 409
Christopher Marshall Avatar asked Dec 15 '22 23:12

Christopher Marshall


1 Answers

According to this post on ionics forums:

"It's an ionic thing, not a cordova issue.

 <ion-content
         has-bouncing="false"
         start-y="55"
         padding="true"
         has-tabs="true"
         has-header="true"
         >

Use the has-bouncing attribute to disable the bounce effect on the ion-content directive"

Just had to set the attr has-bouncing="false", I don't know why that could override the Cordova config settings though.

like image 101
Christopher Marshall Avatar answered Dec 20 '22 17:12

Christopher Marshall