-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Align OnDoubleTap behavior on Windows and Android
#20870
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
Align OnDoubleTap behavior on Windows and Android
#20870
Conversation
|
Hey there @MartyIX! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
@PureWeen Would this PR make sense to you please1? Footnotes
|
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
7e54970 to
56835d4
Compare
|
@MartyIX thanks for this PR. Are you able to move the sample code into some UI tests so we can run the checks on CI. Thanks! We have some docs here: https://github.com/dotnet/maui/blob/main/docs/design/UITesting.md @jsuarezruiz / @PureWeen do we have new/better/updated docs for writing tests? |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
mattleibow
left a comment
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.
Blocking for now as this PR needs tests and the sandbox sample needs to be reverted.
So I created the PR with the hope that I'll get a "concept ACK". Is it a concept ACK then? I mean is the new behavior correct according to you? |
I can try. Yes. |
I think so. How do all the other platforms handle this? How do the pointer gestures work with this? Do the windows docs still apply
I feel like this and the surrounding remarks are saying that because tap and double tap are "gestures", they work in the logical sense of tap then double tap, but if you really want the actual actions, the pointer events (maui pointer gestures) are what you can use. |
56835d4 to
5f4e61c
Compare
I'm not really sure. I noticed that there is a new comment here. Apart from that I guess this needs more research or somebody who knows the stuff already. |
From the linked comment below:
Since iOS does it the same way winUI does, I would be inclined to make the behavior "tap, double tap". |
5f4e61c to
414175b
Compare
414175b to
ebd7e23
Compare
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
@morning4coffe-dev tested this on WinUI and it seems like the WinUI docs aren't accurate. This is a good first step.
|
b138f16 to
ebd7e23
Compare
|
Adjusted the behavior on Android to match Windows more closely: android-pointer.mp4CC @PureWeen let me know what you think about the changes |
OnDoubleTap behavior on Windows and Android
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
1 similar comment
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
@morning4coffe-dev Thank you for moving this forward :) |
C:\a_work\1\s\src\Controls\tests\TestCases.HostApp\FeatureMatrix\CheckBox\CheckBoxControlPage.xaml(22,27): XamlC error XC0009: No property, BindableProperty, or event found for "Command", or mismatching type between value and property. [C:\a_work\1\s\src\Controls\tests\TestCases.HostApp\Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-maccatalyst] |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |

Description of Change
Currently, on
mainwhen one definesand double clicks that label, it leads to the following calls:
This PR makes it so that a double click leads to:
This new behavior seems to be more in line with https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.uielement.doubletapped?view=winrt-19041 which mentions:
Demo
Main:
PR:
Issues Fixed
Fixes #16235