Sat, 22 Jan 2022 08:20:59 GMT
Join the conversation at slack.cordova.io
Fri, 21 Jan 2022 18:06:15 GMT
@tomkinson says
Sorry to post in general but no action on our iOS forum post for days and maybe someone sees it here. Is there a way to reliably disable the scroll bounce behavior on iOS? Seems like this has to be a solved problem by now.
The css option (overscroll-behavior) isn‘t supported on safari, and I’ve tried setting the DisallowOverscroll preference to true without any luck. I‘ve seen a number of js based solutions but they’re hacky and I'd much rather avoid those if possible.
Overriding the viewDidLoad method for the webview might require forking cordova-ios? Or can I use a <preference> in config.xml to set the bounces property to false on the webview? This idea is based on this https://stackoverflow.com/questions/49474826/how-to-disable-bouncing-effect-in-wkwebview|https://stackoverflow.com/questions/49474826/how-to-disable-bouncing-effect-in-wkwebview
Fri, 21 Jan 2022 18:16:57 GMT
@dpogue says
The implementation of
DisallowOverscroll
setsbounces
to false: https://github.com/apache/cordova-ios/blob/f12abcc9973fd0618ddc8999df3fa2e96468ecf1/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m#L386-L400 So if that‘s not working, it’s possible Apple broke/changed something in WebKit