[Managed pointers] Pointer state can be stuck when visual tree changes #17914
Labels
area/skia ✏️
Categorizes an issue or PR as relevant to Skia
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
platform/wasm 🌐
Categorizes an issue or PR as relevant to the WebAssembly platform
project/pointers 🖱️
Categorizes an issue or PR as relevant to mouse/touch/pen pointers
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
Use this XAML:
and code-behind:
If you click the button, and don't move the mouse, you'll find that it's stuck in PointerOver state, while it should have been in Normal state. The root cause is that we are missing PointerExited event in this case.
Expected behavior
In WinUI, they have a special internal
XCP_POINTERUPDATE
event. They request it by callingRequestReplayPreviousPointerUpdate
, and then this event will raise the relevant events, if needed.How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: