How to cancel the elastic springback of iOS webview in iOS 12 + version

env: cordova+h5;
OS: iOS;

issue: how to cancel the elastic springback effect on iOS12+ version?

Jun.15,2022

set it in config.xml

<platform name="ios">
    <preference name="UIWebViewBounce" value="false" />
    ... (other stuff) ...
</platform>

find the api of cordova to call the native method,

iOS webview is a subclass of UIScrollView in native. Cancel the springback effect of iOS webview and set the bounces property of UIScrollView to false.


if you don't change it quickly, WK,iOS13 has been abandoned and Apple will impose audit restrictions.

Menu