0

How do I disable top and bottom bounce in ion-content? I've tried adding overflow-scroll and no such luck:

<ion-content [scrollY]="!disableScroll" overflow-scroll="false">
</ion-content>
halfer
  • 19,824
  • 17
  • 99
  • 186
Josh O'Connor
  • 4,694
  • 7
  • 54
  • 98
  • Please refer to this link, varified on V5 [IOS bouncing effect fix for IONIC-V5](https://stackoverflow.com/a/72433926/1317637) – Nikhil May 30 '22 at 12:03

2 Answers2

1

Use forceOverscroll for that

<ion-content forceOverscroll="false">

</ion-content>
AbdulAzeem
  • 529
  • 4
  • 8
  • In Capacitor 6 using Angular you’ll need to write the attribute is as an expression `` – Ade Aug 29 '22 at 19:42
0

Please add below line in config.xml :

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

And run below command :

ionic cordova prepare ios

Re-run the app , i hope app will working fine.

Hkh
  • 357
  • 1
  • 10