Greg Greg - 3 months ago 69
iOS Question

Disable content bouncing scroll

In my

hybrid
app there's a possibility to drag the screen to refresh the list. In
Android
this works fine, but on
iOS
when I'm dragging down it sometimes confuses it with scrolling the page so it has that overflow/bouncing effect.

In
ionic
there's an attribute you can use to disable this, but it's not working:

<ion-content id="questions" has-bouncing="false">


config.xml already has these lines of code:

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

Answer

You will need to set overflow-scroll to false like :

overflow-scroll="false"

Comments