-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[v6][ios] WKWebView in overlay ignore its touches #6051
Comments
After some debugging, we have found that the issue is probably related with the hitTest implementation of the overlay window, down here
This is caused because the WKWebView derivates from the UIView class, which is "filtered" by the hitTest, to understand if the tap is outside the overlay. (so in the very last view in the hierarchy) The check of the UIView was added together with the check of UIWindow to fix this issue #5889 |
We found a quick fix: we changed the hitTest and removed the check for the UIView (which was too generic, filtering also the WKWebView) and added a more specific condition, that should work.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@geroale what about a pull request? |
The same thing happens with the RN Switch component. |
On iOS, `Switch` components do not function in overlays. Code from @geroale in #6051 (comment) Fixes #6051 Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com> Co-authored-by: Yogev Ben David <yogev132@gmail.com>
Issue Description
By showing a WKWebView at fullscreen (for example the one from https://github.com/react-native-community/react-native-webview) on iOS in the overlay, the touches pass through the overlay and hit the navigator behind (for example the stack).
It's like the WKWebView is ignoring the touch events if inside the overlay.
Steps to Reproduce / Code Snippets / Screenshots
The overlay component
The overlay options
Environment
The text was updated successfully, but these errors were encountered: