Skip to content
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

Merged
merged 9 commits into from
May 7, 2024

Conversation

Foda
Copy link
Member

@Foda Foda commented Apr 10, 2024

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

@Foda Foda requested a review from a team as a code owner April 10, 2024 22:18
@dotnet-policy-service dotnet-policy-service bot added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Apr 10, 2024
@Foda
Copy link
Member Author

Foda commented Apr 10, 2024 via email

@PureWeen
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

[Test]
public async Task ImageButtonStuckAfterRightClick()
{
this.IgnoreIfPlatforms(new TestDevice[] { TestDevice.Android, TestDevice.Mac, TestDevice.iOS });
Copy link
Member

@jfversluis jfversluis May 6, 2024

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?

Copy link
Member Author

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.

@PureWeen PureWeen merged commit 752eed7 into main May 7, 2024
49 checks passed
@PureWeen PureWeen deleted the foda/ImgButtonPointerState branch May 7, 2024 00:45
tj-devel709 pushed a commit that referenced this pull request May 9, 2024
…#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>
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Windows Only]ImageButton get stuck in "PointerOver" state if right click
6 participants