Skip to content

Conversation

@goderbauer
Copy link
Member

Description

Adds the localFocalPoint to ScaleStartDetails and ScaleUpdateDetails. I forgot to do this in #32192.

Related Issues

Fixes #33818

Tests

I added the following tests:

  • Verify that details contain local focalPoint.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

@goderbauer
Copy link
Member Author

/cc @mtcliatt

@goderbauer goderbauer added the framework flutter/packages/flutter repository. See also f: labels. label Jun 6, 2019
///
/// See also:
///
/// * [localFocalPoint], which is the same value reported in global
Copy link
Contributor

@mtcliatt mtcliatt Jun 6, 2019

Choose a reason for hiding this comment

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

"reported in local" (and on 93)

Sorry for the drive-by review, I was just looking through the commit to learn more and spotted this easy-to-miss slip.

Since I'm here... LGTM! :)

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

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

LGTM other than the quick local/global swap mentioned by @mtcliatt.

Bonus points for adding a parameter that rhymes.

///
/// See also:
///
/// * [localFocalPoint], which is the same value reported in global
Copy link
Contributor

Choose a reason for hiding this comment

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

+1

@goderbauer goderbauer merged commit 9114f44 into flutter:master Jun 6, 2019
@goderbauer goderbauer deleted the scale branch June 6, 2019 18:09
@goderbauer goderbauer mentioned this pull request Jun 6, 2019
9 tasks
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ScaleGestureRecognizer isn't transforming PointerEvents to the local coordinate system of the event receiver

4 participants