microsoft / microsoft/microsoft-ui-xaml
Tooltip gets stuck after long press (~3 seconds) on touch screen in WinUI 3
- Dominant language
- C++
- Stars
- 8.4k
- Forks
- 942
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 105
Description
### Describe the bug
When using a touch-enabled device, performing a long press (approximately 3 seconds) on a UI element that has a Tooltip causes the Tooltip to appear but never dismiss afterward.
### Why is this important?
This behavior leads to a poor user experience on touch devices, as the Tooltip blocks UI interaction and cannot be dismissed without additional workarounds.
### Steps to reproduce the bug
1. Create a WinUI 3 application and run on a touch-enabled device.
(already has attached a Tooltip to any interactive element (e.g., Button))
2. Press and hold (long press) on the element for ~3 seconds.
3. Release the touch.
### Actual behavior
The Tooltip appears after the long press but remains stuck on the screen indefinitely. It does not disappear even after releasing the touch.
### Expected behavior
The Tooltip should appear on long press and then automatically dismiss when the touch interaction ends or when focus changes.
### Screenshots
_No response_
### NuGet package version
WinUI 3 - Windows App SDK 1.8.5: 1.8.260209005
### Windows version
Windows 11 (23H2): Build 22631
### Additional context
_No response_
Contributor guide
Research direction
Reproduce the issue in a WinUI 3 application on a touch-enabled Windows 11 device using Windows App SDK 1.8.5, following the long-press steps in the report. Done means the Tooltip appears after a long press and dismisses when the touch ends or focus changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100