Skip to content

Conversation

@amirh
Copy link
Contributor

@amirh amirh commented Dec 26, 2018

flutter/engine#7307 changes the engine side of embedded UIView to only
reject gestures when the framework sends a rejectGesture message, so
that gesture resolution can done after a touch sequence has ended (see
PR description for flutter/engine#7307 for more details).

This change makes the framework send a rejectGesture message to the
engine when a UiKitView rejects a gesture.

I'm planning to land this PR before the engine side change, so right now
it swallows the exception thrown if there is no engine implementation
for rejectGesture (which keeps us with the current behavior). After
this change lands I'll land the engine PR, and then clean up the part
that swallows the exception.

#24076

flutter/engine#7307 changes the engine side of embedded UIView to only
reject gestures when the framework sends a `rejectGesture` message, so
that gesture resolution can done after a touch sequence has ended (see
PR description for flutter/engine#7307 for more details).

This change makes the framework send a `rejectGesture` message to the
engine when a UiKitView rejects a gesture.

I'm planning to land this PR before the engine side change, so right now
it swallows the exception thrown if there is no engine implementation
for `rejectGesture` (which keeps us with the current behavior). After
this change lands I'll land the engine PR, and then clean up the part
that swallows the exception.
@amirh amirh merged commit 50f9b88 into flutter:master Dec 27, 2018
@amirh amirh deleted the reject_gesture branch December 27, 2018 03:34
@zoechi zoechi added framework flutter/packages/flutter repository. See also f: labels. f: gestures flutter/packages/flutter/gestures repository. a: platform-views Embedding Android/iOS views in Flutter apps labels Dec 27, 2018
kangwang1988 added a commit to XianyuTech/flutter that referenced this pull request Dec 27, 2018
* flt_master:
  Actively reject UiKitView gestures. (flutter#25792)
  Roll engine e75fad7..9daf5c8 (3 commits) (flutter#25786)
  Roll engine d8c5ec0..e75fad7 (5 commits) (flutter#25757)
  Include cursor in textfield intrinsic width measurement (flutter#25055)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a: platform-views Embedding Android/iOS views in Flutter apps f: gestures flutter/packages/flutter/gestures repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants