dotnet / dotnet/wpf

Touchup events not responding immediately

Open
#9,379 0 comments 0 reactions 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/-Wpf:-In-the-TouchUp-event-use-ShowDial/10246050)._

---
[severity:It bothers me. A fix would be nice]
Use ShowDialog to call UserControlB in the Touchup of the Border control in the MainWindow of the main window,
Touch the Button with only Click event, and it will not respond immediately. You need to click it ten times to respond,
Touch the Button with Touchup event, and there will be an immediate response
Why does this happen? Is it a modal window called out through TouchUp events,
Internal controls cannot convert touch events to mouse events?

Development environment: vs2019. net framework 4.8
Compiled exe application:
[Release.7z](https://aka.ms/dc/file?name=B0eaf5711323c4395bad5b07e46bc072d638085021240862473_Release.7z&tid=0eaf5711323c4395bad5b07e46bc072d638085021240862473)

---
### Original Comments

#### Feedback Bot on 1/5/2023, 01:32 PM:

(private comment, text removed)
#### Dolly Wang [MSFT] on 1/6/2023, 08:34 AM:

(private comment, text removed)
#### Dolly Wang [MSFT] on 1/6/2023, 08:37 AM:

(private comment, text removed)
#### 梁红 康 on 1/6/2023, 01:35 PM:

(private comment, text removed)
#### Feedback Bot on 1/6/2023, 01:43 PM:

(private comment, text removed)
#### Feedback Bot on 5/4/2023, 11:52 AM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

---
### Repro
![ShowDialog](https://github.com/dotnet/wpf/assets/105205215/77844941-cd7e-4642-bcef-20fcc93123d9)

[ShowDialog.zip](https://github.com/user-attachments/files/16172623/ShowDialog.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.