Skip to content

[Windows] Fix pointer released event not being handled on ImageButton#21766

Merged
PureWeen merged 9 commits into
mainfrom
foda/ImgButtonPointerState
May 7, 2024
Merged

[Windows] Fix pointer released event not being handled on ImageButton#21766
PureWeen merged 9 commits into
mainfrom
foda/ImgButtonPointerState

Conversation

@Foda
Copy link
Copy Markdown
Contributor

@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
@Foda Foda requested review from jfversluis and mattleibow 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
Comment thread src/Core/src/Handlers/ImageButton/ImageButtonHandler.Windows.cs
@Foda
Copy link
Copy Markdown
Contributor Author

Foda commented Apr 10, 2024 via email

Comment thread src/TestUtils/src/UITest.Appium/HelperExtensions.cs Outdated
@PureWeen
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Contributor 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
@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

7 participants