Releasing pointer capture while out of the window cause an error to be logged on WPF #16769
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
platform/wpf 🪟
Categorizes an issue or PR as relevant to WPF
project/pointers 🖱️
Categorizes an issue or PR as relevant to mouse/touch/pen pointers
Current behavior
When we release a pointer that has been captured out of the windows bounds on WPF cause this
uno/src/Uno.UI/UI/Xaml/Internal/InputManager.Pointers.Managed.cs
Line 128 in c72870f
This seems to be because when we invoke
ReleaseCapture
, WPF send us synchronously a pointer leave which cause to have a second pointer event (leave) being raised while still processing the release.Expected behavior
No errors
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?
Stack trace:
The text was updated successfully, but these errors were encountered: