[1.0.0-beta.17][iOS] The scroll bouncing behavior is still enabled
See original GitHub issueHi,
To follow up my question posted in December on Slack: the bouncing is present when scrolling.
I would like to disable this behavior but I don’t understand how I can proceed… It seems already disabled in the Capacitor settings: https://github.com/ionic-team/capacitor/blob/master/ios/Capacitor/Capacitor/CAPBridgeViewController.swift#L49
I was also hoping on a hack on Ionic side, but it’s precised in its documentation (https://github.com/ionic-team/ionic/tree/2c37a5a7b279da9f82b377d54b27ba2a8391eaed/core/src/components/content#forceoverscroll) that: Note, the does not disable the system bounce on iOS. That is an OS level setting.
To reproduce the behavior you just need to have a content in <body bigger than the <body height, something like:
span hey
br
br
br
br
br
br
br
br
br
br
br
br
br
br
br
span hey
br
br
br
br
br
br
...
br
br
br
br
br
span hey
br
br
br
br
br
br
br
br
br
br
br
br
br
br
br
Thank you,
EDIT: by the way, since I’m not seeing any people posting a related issue, maybe I’m doing wrong. If someone has the bouncing disabled, please share a code example 👍
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (3 by maintainers)
If you want to disable bouncing in ios you need to add somewhere (e.g. create DisableBounce.m file) following code:
Additionally, if you use ionic 4, for each ion-content you should set force-overscroll=false.
this breaks < IonRefresher /> at least in React and a few other components act strange. Why is a basic thing still so broken…