New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: wkwebview bouncing issue on iOS 16 #5907
Comments
+1 on this. Seeing the same thing in iOS16 on physical devices |
I am also able to reproduce this using iPhone 13/14 simulators running iOS 16. |
+1 here, any solution? |
@rpanadero did you find a way to override this without needing to edit the core Capacitor project? |
Any fix? |
There is some talk of a fix here for Cordova. Is this possible to port to Cap? |
It looks like this fix helps with webview freezing for a bit if user tries to scroll (and continue trying to scroll) after bounce effect. |
馃憖 |
Actually the following capacitor config fixed it for me...
|
This will also prevent native webview scrolling entirely (see https://developer.apple.com/documentation/uikit/uiscrollview/1619395-isscrollenabled). |
@mcfarljw that stopped the bounce but also my body isnt scrolling now. Not sure if need to somehow do some sort of nested internal scroll. I think this is what those docs indicate. I'll prob just not do that and deal with bounce for now... |
I have same problem. Any fix? |
The PR solving this is here. A quick merge would be very appreciated. |
I couldn't get any of the native code to work but the actual capacitor.config.ios values fixed this for me.
|
++++ |
Bug Report
Capacitor Version
Platform(s)
Current Behavior
The webview bounces when the user slides down the view. I have checked the webview config and bouncing effect is disabled, but it seems it doesn't work.
Only reproduced on a physical iOS device with iOS 16.
Expected Behavior
The webview shouldn't bounce when the user slides down the app view.
Code Reproduction
https://github.com/rpanadero/demo-bouncing
Only reproduced on a physical iOS device with iOS 16.
Other Technical Details
npm --version
output: 8.19.1node --version
output: v18.9.0pod --version
output (iOS issues only): 1.11.3Additional Context
This bug was already reported as an iOS 16 issue on Apple forum one month ago, but it seems not to be fixed yet. Maybe, Apple will fix it in some days or months.
https://developer.apple.com/forums/thread/711601
Until Apple fixes the issue, we suggest to apply the workaround commented in this thread because the change is centralized and can be easily reverted when Apple fixes the real issue, if Capacitor team desires. The workaround consist on setting 'alwaysBounceVertical' webview property to false. Also, we have tested that the bug is still present on iOS 16 final release and the workaround still works.
We think that this change should be applied on Capacitor core code because this behaviour is undesired for all Capacitor iOS apps. In fact, webview bouncing is already disabled here:
https://github.com/ionic-team/capacitor/blob/76f28e70a5c0a03e4c6b9a93a0c068666a2c38ff/ios/Capacitor/Capacitor/CAPBridgeViewController.swift
capacitor/ios/Capacitor/Capacitor/CAPBridgeViewController.swift
Line 286 in 76f28e7
The text was updated successfully, but these errors were encountered: