Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@cyanglaz
Copy link
Contributor

This issue flutter/flutter#24207 (comment) still exists in certain cases. I haven't discovered why but sometimes calling [_flutter_view touchesEnded:] in the forwarding gesture recognizer does not trigger the touchesEndeded call in the flutter view controller. Which then leads the touches failed to be passed up to the framework.

I think when we forwarding the gesture to the framework, what we really need is to let the FlutterViewController know the touch events, since the FlutterViewController is the one sending touch events to the framework.

This PR updated the forwarding gesture recognizer to pass the touch events directly to the FlutterViewContoller instead of FlutterView which ensures the touches events are passed to the framework.

@cbracken cbracken requested a review from chunhtai May 6, 2019 18:16
Copy link
Contributor

@amirh amirh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyanglaz cyanglaz merged commit 0bc6dc9 into flutter:master May 10, 2019
@cyanglaz cyanglaz deleted the platform_view_gesture_fix branch May 10, 2019 16:58
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 10, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request May 10, 2019
flutter/engine@710e9ed...3822aec

git log 710e9ed..3822aec --no-merges --oneline
3822aec Prevent redundant layouts when floor(width) is the same (flutter/engine#8867)
0bc6dc9 Platform_views gesture: let flutter view controller be the media to pass the touches. (flutter/engine#8685)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop
the roller if necessary.
huqiuser pushed a commit to huqiuser/engine that referenced this pull request Jun 12, 2019
…ass the touches. (flutter#8685)

This PR updated the forwarding gesture recognizer to pass the touch events directly to the FlutterViewContoller instead of FlutterView which ensures the touches events are passed to the framework.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants