Button/ImageButton Released event does not fire after multi-touch unless finger is on the button #12037
Labels
area-controls-button
Button, ImageButton
area-gestures
Gesture types
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
This bug is a variation of the multi-touch bug reported in #12033, but it affects both the Button and ImageButton controls. In the former issue, the bugs only affected ImageButton, with Button behaving correctly.
After being touched, the button control should fire the
Released
event once it is no longer being touched down. However, after a multi-touch elsewhere on the page, the event only fires if the finger is over the button when the touch is released.Steps to Reproduce
Create a MAUI project with a Button or ImageButton control with Pressed and Released events. In my repro project, the event handlers print "pressed" and "released" to the Debug window. The blue ImageButton and the green Button have the event handlers.
Steps 2 and 3 can be performed in either order.
Expected Output
Actual Output
Note that if you simply touch the button, slide your finger away from the button, and then release, you will get the expected output with the Button control (but not ImageButton; see #12033). So we can see that it should work, but the multi-touch is disrupting it.
Link to public reproduction project repository
https://github.com/ArrowCase/TestMauiButton
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows SDK 10.0.19041.0
Did you find any workaround?
None.
Relevant log output
No response
Depends on
The text was updated successfully, but these errors were encountered: