-
Notifications
You must be signed in to change notification settings - Fork 28.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add PointerDeviceKind to ScaleStartDetails #165096
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except for a small docs change. Thanks for jumping in and making this change. I'm sure a lot of people have struggled with not having this value over the years when someone just needed to add it.
/// The kind of the device that initiated the event. If multiple pointers are | ||
/// touching the screen, the kind of the pointer device that first initiated | ||
/// the event is used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first sentence should be its own paragraph per the styleguide: https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md#dartdoc-specific-requirements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Yeah, I was going though the |
Adds the
PointerDeviceKind
of the scale start event toScaleStartDetails
, which is currently missing.This is a bug according to #115061. Additionally, according to the docs:
See also #135936 for similar issues and the PRs fixing them.
If multiple pointers are contacting the screen at scale start, then the
PointerDeviceKind
of the first pointer is used. In practice this should be good enough as I don't know of any UI that expects you to use two different pointer kinds at the same time. However, if this is an issue, we could either give a list of pointers with their kinds or a set of all activePointerDeviceKind
s. I don't think this is necessary though.Closes #115061.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.