-
-
Notifications
You must be signed in to change notification settings - Fork 866
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tap events on iframe don't work on Android 10+ #465
Comments
Same issue in iFrame for me as well. Although the image and links taps work perfectly. Please note that the click events are thrown in the logs, and you need to react to the clicks from your end. |
Will investigate, because it works for me in the minimal example app. Can you provide a minimal reproducible example? Are you using the Html widget in some particular other scroll container? And are you using the new Hybrid Composition or older platform view implementation? |
@erickok my Html widget is in a CustomScrollView > SliverList. I don't think this is affecting it because it works fine on Android 9 and below. |
I can't reproduce this (Android 11, Pixel 3). Even when I run on Hybrid Composition for the webview.
The iframe accepts scrolls and clicks and text input just fine. Can anyone produce a reproducible example? |
Please let us know if this problem persists, even in the example I supplied above. Or alternatively if you can provide a reproducable example of the issue, that would be great. |
Sorry I keep forgetting about this one. My dev phone is android 9 (my personal phone is android 11 so I'll test on there). |
@erickok the problem still persists for me. Simply add Device: Flutter doctor -v
Edit: I tested on flutter_html master. |
I am trying to tap pause the youtube video, and start the vimeo video. The taps are only about 20% registered. When the taps are actually registered, the location of taps are also misread. The youtube video is handled by YoutubePlayer widget.
|
If I have an iframe that displays a webview component on Android 10+, scrolling and tapping are both broken. The webview
Container
seems to respond to scroll events using this fix (the rest of the page doesn't scroll if you scroll on the webview "box"), however the webview itself still does not scroll.Secondly, the webview doesn't even respond to tap events. Tapping on "images" or the google logo does nothing in the example app.
What's strange is that tap events work fine on my Android 9 device (Galaxy S8), but on my Android 10/11 device (Galaxy S10+), it doesn't work.
I also tried using
customRender
and a different webview plugin like this to achieve a custom youtube/actual iframe rendering method (replace anyiframe
tags withiframe1
otherwise theattributes
come back asnull
):In this case, vertical drags are handled correctly on Android 10+ but tap events still don't work. I've tried a lot of different things with
GestureRecognizers
and removing/switching out the webview options but to no avail. There aren't any issues with the officialwebview_flutter
orflutter_inappwebview
plugins either AFAIK. Does anyone know how this can be fixed?The only thing I can think of is that something is attaching itself to a
TapGestureRecognizer
(or something similar) and thus the webview can't attach itself to it... I could be wrong though.The text was updated successfully, but these errors were encountered: