-
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] Tap Events Incorrectly passed Through Button - fix #26834
base: main
Are you sure you want to change the base?
[Windows] Tap Events Incorrectly passed Through Button - fix #26834
Conversation
c1e1c2f
to
5cc8f85
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
9872c1c
to
52320be
Compare
52320be
to
aa3c96d
Compare
Azure Pipelines successfully started running 3 pipeline(s). |
Failed tests look unrelated. I rerun locally |
aa3c96d
to
6aea414
Compare
Pushed to fix merge conflict. |
@@ -783,8 +864,17 @@ void UpdatingGestureRecognizers() | |||
|| children?.GetChildGesturesFor<TapGestureRecognizer>(g => g.NumberOfTapsRequired == 1).Any() == true) | |||
{ | |||
_subscriptionFlags |= SubscriptionFlags.ContainerTapAndRightTabEventSubscribed; | |||
_tappedEventHandler = new TappedEventHandler(OnTap); | |||
_container.AddHandler(FrameworkElement.TappedEvent,_tappedEventHandler, true); |
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.
See #26640 (comment). I tested setting this true
to false
but it did not work for me then. That's why I tried the "special-casing" approach.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Description of Change
#25311 makes it possible to register when an entry is tapped. However, it seems it breaks other controls.
This is, in a way, naive way to fix it by "special-casing" (see the third commit) #25311's behavior just for entries and not other controls.
Notes:
Issues Fixed
Fixes #26640