-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[InAppWebView] double click but touchstart event only trigger once #216
Comments
I have the same issue, did you solve it? |
The problem was not solved. |
I debugged my demo |
I added the following code and it works as expected: override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
let view = super.hitTest(point, with: event);
let gestureRecognizers = self.superview?.superview?.gestureRecognizers ?? []
for gesture in gestureRecognizers{
gesture.isEnabled = false
}
return view
}``` |
I have the same issue and that code snippet solved it. However, I'm not sure if it impacts something else. |
Hi! Tell me, where do I need to add this code? |
|
Thanks @swordyy7 for the fix! To anyone else who wants to try this fix, I just published a fork of flutter_inappwebview with the touch delay fix provided by @swordyy7.
The forked library is listed on pub.dev here, and the source code is here. Hope this helps someone. :) |
@swordyy7 |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
Environment
Flutter version: 1.10.15
Plugin version: 2.1.0+1
Android version:
iOS version: 13.1.3
Xcode version: xcode 11.1
Device information: iOS
Description
I use
InAppWebView
load html, then double click div tag, but only trigger once event;Expected behavior:
two click log
Current behavior:
one click log
The text was updated successfully, but these errors were encountered: