On Android, when the user reaches the bottom of the page, the scrolling stops. On iOS, when the user reaches the bottom of the page it “bounces” past the end of the page and shows a white background. I don’t want it to do this - the background of my page is dark grey, and this overscroll looks terrible.
I’ve already added the following three lines to the config.xml file:
I can’t seem to set any background-color or background-image for the <ion-content> element, so I’m stuck using a <div> just inside the <ion-content> element to wrap my page contents and set the background.
My background is a gradient set at an angle, so the bottom edge is also a gradient. Setting a solid color background wouldn’t look as seamless as I’m looking for.
Unfortunately I found this, I really tried fighting against it.
I quote from documentation
forceOverscroll Description
If true and the content does not cause an overflow scroll, the scroll interaction will cause a bounce. If the content exceeds the bounds of ionContent, nothing will change. Note, the does not disable the system bounce on iOS. That is an OS level setting.
ionic cordova platform add ios && ionic cordova prepare ios
Then find CDVWKWebViewEngine.m, inside /platforms/ios//Plugins/cordova-plugin-ionic-webview/
Put this lines of code at the bottom of the lines and save it.