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

Conversation

@chinmaygarde
Copy link
Contributor

The touch mapper was a relic of a time when the pointer IDs had to be less
than 16. Not respecting the touch phase is getting in the way of clients that
fake their own touches. Turns out the AppDelegate also like to fake touches to
simulate status bar events. Now, except in cases where there is a specific
override in place, the UI touch phase is respected.

Copy link
Member

@xster xster left a comment

Choose a reason for hiding this comment

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

LGTM

// Dispatches the UITouches to the engine. Usually, the type of change of the touch is determined
// from the UITouch's phase. However, the AppDelegate fakes touches to simulate status bar touches
// when the Flutter view is no full screen. The change type of the faked touch is specified in the
// second argument. If the `overridden_change` is nullptr, the change type is determined from
Copy link
Member

Choose a reason for hiding this comment

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

'change' seems like a non-term-of-art wording. Should we call it phase_override or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was using the PointerData::Change enum as the basis of that wording.

@cbracken
Copy link
Member

cbracken commented Oct 4, 2018

lgtm

…e pointer data change type.

The touch mapper was a relic of a time when the pointer IDs had to be less
than 16. Not respecting the touch phase is getting in the way of clients that
fake their own touches. Turns out the AppDelegate also like to fake touches to
simulate status bar events. Now, except in cases where there is a specific
override in place, the UI touch phase is respected.
@chinmaygarde chinmaygarde merged commit 45c5fe5 into flutter:master Oct 4, 2018
@chinmaygarde chinmaygarde deleted the touches branch October 4, 2018 21:34
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 4, 2018
flutter/engine@c8755d7...45c5fe5

git log c8755d7..45c5fe5 --no-merges --oneline
45c5fe5 Remove touch mapper and respect the UITouch phase when calculating the pointer data change type. (flutter/engine#6430)
2347368 Roll src/third_party/skia 66a973493468..d95303e10cbc (13 commits) (flutter/engine#6440)

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, who should
be CC'd on the roll, and stop the roller if necessary.
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Oct 5, 2018
flutter/engine@c8755d7...45c5fe5

git log c8755d7..45c5fe5 --no-merges --oneline
45c5fe5 Remove touch mapper and respect the UITouch phase when calculating the pointer data change type. (flutter/engine#6430)
2347368 Roll src/third_party/skia 66a973493468..d95303e10cbc (13 commits) (flutter/engine#6440)


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, who should
be CC'd on the roll, and stop the roller if necessary.
kangwang1988 pushed a commit to XianyuTech/engine that referenced this pull request Nov 15, 2018
…e pointer data change type. (flutter#6430)

The touch mapper was a relic of a time when the pointer IDs had to be less
than 16. Not respecting the touch phase is getting in the way of clients that
fake their own touches. Turns out the AppDelegate also like to fake touches to
simulate status bar events. Now, except in cases where there is a specific
override in place, the UI touch phase is respected.
kangwang1988 added a commit to XianyuTech/engine that referenced this pull request Nov 15, 2018
…ating the pointer data change type. (flutter#6430)"

This reverts commit b871213.
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.

4 participants