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

Implement all known blink::PointerData fields on iOS. - #3955

Merged
chinmaygarde merged 2 commits into
flutter-team-archive:masterfrom
chinmaygarde:master
Aug 7, 2017
Merged

chinmaygarde merged 2 commits into
flutter-team-archive:masterfrom
chinmaygarde:master

Conversation

@chinmaygarde

Copy link
Copy Markdown
Contributor

Adds all the appropriate runtime version checks. I am not able to test the stylus altitude and azimuth readings because I don't have one (can we get one please). I have tried to match documented behavior though.

// Discussion:
// Sweep direction is the same. Phase of M_PI_2.
pointer_data.orientation = [touch azimuthAngleInView:nil] - M_PI_2;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 for detailed comments!

@jason-simmons

Copy link
Copy Markdown
Contributor

LGTM

The license file needs to be updated for platform_version

@xster xster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LG


// pressure_min is always 0.0
if (_platformSupportsTouchPressure) {
// These properties were introduced in iOS 9.0.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should we add these version limitations to pointer_data.h or pointer.dart?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

5 participants