Issues with Pan, Zoom, and Selection in iOS WebView using flutter_inappwebview #2345
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm facing several issues with WebView behavior on iOS while using flutter_inappwebview. My WebView is designed to display a tutorial flow that involves rotating, panning, zooming, and selecting portions of the content. The issues are detailed below:
Issues:
Pan and Zoom:
On Android, everything works perfectly.
On iOS, rotation works fine, but enabling
supportZoom: true
causes either zoom or pan to work, but not both simultaneously. I need both to function together as they do on Android.Selection Issue:
When I select a portion of the content, it works the first time. However, selecting another portion afterward doesn't work. There seems to be a delay or touch event issue that isn't as smooth as on Android.
I have tried setting
preventGestureDelay: true
, but it didn't resolve the problem as expected.Rare Console Error:
Occasionally, I get the following error:
Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
I'm not sure if this is related to the issue, but thought it might be worth mentioning.
Additional Details:
Steps to Reproduce:
Implement the above WebView in an iOS app.
Attempt to pan and zoom simultaneously.
Select a portion of the WebView content and attempt to select another.
Expected Behavior:
Both pan and zoom should work simultaneously, as they do on Android.
Smooth selection between different portions of the WebView.
Actual Behavior:
Only one of pan or zoom works at a time.
Unable to select multiple portions smoothly.
Possible Related Error:
Tried using
touch-action: manipulation;
as well.https://webkit.org/blog/5610/more-responsive-tapping-on-ios/
Beta Was this translation helpful? Give feedback.
All reactions