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

Button/ImageButton Released event does not fire after multi-touch unless finger is on the button #12037

Open
1 task
ArrowCase opened this issue Dec 12, 2022 · 4 comments
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

Comments

@ArrowCase
Copy link

ArrowCase commented Dec 12, 2022

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.

  1. Touch and hold the button.
  2. Touch elsewhere on the page with another finger (it doesn't matter if this touch is held down).
  3. Slide the first finger off the button.
  4. Release the first touch.

Steps 2 and 3 can be performed in either order.

Expected Output

pressed
released

Actual Output

pressed

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

@ArrowCase ArrowCase added the t/bug Something isn't working label Dec 12, 2022
@ArrowCase ArrowCase changed the title Button/ImageButton Released event does not fire after multi-touch unless cursor is on the button Button/ImageButton Released event does not fire after multi-touch unless finger is on the button Dec 12, 2022
@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Dec 12, 2022
@mattleibow mattleibow added this to the Backlog milestone Dec 13, 2022
@ghost
Copy link

ghost commented Dec 13, 2022

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@ArrowCase
Copy link
Author

Possibly related: microsoft/microsoft-ui-xaml#1959

@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2023
@Zhanglirong-Winnie
Copy link

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 2.0. Can repro on android device platform with sample project.
TestMauiButton-master.zip
Screenshot 2023-07-10 165836

@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
@vovanb
Copy link

vovanb commented Jun 20, 2024

do you have solution? Same issue with Android and MAUI 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

5 participants