-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Windows] Fix pointer released event not being handled on ImageButton #21766
Conversation
If we never had a release event, how did normal/left clicks work???
It uses a “click”, which fires a pressed then released event 😵💫
|
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
…t/maui into foda/ImgButtonPointerState
[Test] | ||
public async Task ImageButtonStuckAfterRightClick() | ||
{ | ||
this.IgnoreIfPlatforms(new TestDevice[] { TestDevice.Android, TestDevice.Mac, TestDevice.iOS }); |
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.
Any specific reason we want to not test this on the other platforms?
I get that this is about clicks/hovers so it might not work on some platforms, but if it reasonably can work, why not let them run there as well?
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.
Ah, the ticket mentioned that it already worked fine in macOS, so I wrote the test to only check on Win. The Appium test does specifically use the pointer right click, so we could enable it for macOS as well.
…#21766) * Fix pointer released event not being handled on ImageButton * Revert bad file include * Actually implement the scripts needed for right click * Fix merge * Remove dupe release event * Update ref image --------- Co-authored-by: Mike Corsaro <mikecorsaro@microsoft.com>
Description of Change
Fix pointer released event not being handled on ImageButton, which caused the visual state to not transition when using right click.
Issues Fixed
Fixes #21706