-
Notifications
You must be signed in to change notification settings - Fork 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
Propoagate Tap events on Android hybrid views #19608
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
We are modifying the pointer properties on the framework side during gesture disambiguation, this requires us to construct a new motion event which is a clone except for these fields. One item is to investigate if this can be avoided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. This will be tested in flutter/flutter e2e driver test.
Translate the coordinate from global flutterview to the specific embedded sub-view.
* Propoagate Tap events on Android hybrid views (#19608) Translate the coordinate from global flutterview to the specific embedded sub-view. * [android] Pass synthesized eventType to VirtualDisplay platform views and fix memory leak (#19620) * Update 1.20.0-7.1.pre engine hash to Dart 2.9.0-21.2.beta Co-authored-by: Kaushik Iska <iska.kaushik@gmail.com>
trackedEvent.getDownTime(), | ||
trackedEvent.getEventTime(), | ||
trackedEvent.getAction(), | ||
touch.pointerCount, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with multiple touch, this pointerCount may unmatched with the trackedEvent.getAction() and cause some crash.
for example.
trackedEvent.getAction() -> 0x0106 (ActionIndex = 1, ACITON_POINTER_UP)
but pointerCount from flutter engine missed move event with the pointerUp, pointerCount will be 1
We are modifying the pointer properties on the framework side
during gesture disambiguation, this requires us to construct a
new motion event which is a clone except for these fields.
One item is to investigate if this can be avoided.
See: flutter/flutter#61116