Skip to content
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

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

iskakaushik
Copy link
Contributor

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

@iskakaushik iskakaushik requested a review from blasten July 8, 2020 18:34
@fluttergithubbot
Copy link
Contributor

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.
Copy link

@blasten blasten left a 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.

@iskakaushik iskakaushik merged commit 40d3f7c into flutter:master Jul 8, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 9, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 9, 2020
pcsosinski pushed a commit to pcsosinski/engine that referenced this pull request Jul 10, 2020
Translate the coordinate from global flutterview to the specific embedded sub-view.
pcsosinski pushed a commit that referenced this pull request Jul 10, 2020
* 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,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants