Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Reject unaccepted pointers in Drag recognizer#75943

Merged
fluttergithubbot merged 2 commits into
flutter:masterfrom
goderbauer:fixDrag
Feb 16, 2021
Merged

Reject unaccepted pointers in Drag recognizer#75943
fluttergithubbot merged 2 commits into
flutter:masterfrom
goderbauer:fixDrag

Conversation

@goderbauer

@goderbauer goderbauer commented Feb 12, 2021

Copy link
Copy Markdown
Member

Fixes #75061.

#75061 (comment) contains a detailed description of what the problem was that's fixed by this PR.

@flutter-dashboard flutter-dashboard Bot added the framework flutter/packages/flutter repository. See also f: labels. label Feb 12, 2021
@google-cla google-cla Bot added the cla: yes label Feb 12, 2021
@goderbauer

Copy link
Copy Markdown
Member Author

@goderbauer goderbauer requested a review from dkwingsmt February 12, 2021 23:54

@dkwingsmt dkwingsmt 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.

LGTM except for a small comment

}
}

final List<int> _acceptedActivePointers = <int>[];

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.

According to the use cases, shouldn't Set be a better container here?

localPosition: _initialPosition.local,
);
invokeCallback<void>('onDown', () => onDown!(details));
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

_checkStart and _checkUpdate also can be optimized.

@fluttergithubbot fluttergithubbot merged commit 6afbb25 into flutter:master Feb 16, 2021
@goderbauer goderbauer deleted the fixDrag branch February 18, 2021 17:03
christopherfujino pushed a commit to chris-forks/flutter that referenced this pull request Mar 10, 2021
christopherfujino added a commit that referenced this pull request Mar 11, 2021
* Reject unaccepted pointers in Drag recognizer (#75943)
* Delete unzipped FlutterMacOS.framework before replacing artifact (#77316)
* Fix missing root Scaffold check in ScaffoldMessenger  (#77410)
* Roll engine cherrypicks

Co-authored-by: Michael Goderbauer <[email protected]>
Co-authored-by: Jenn Magder <[email protected]>
Co-authored-by: Kate Lovett <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'_initialButtons == kPrimaryButton': is not true.

4 participants