You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To implement custom drawn window buttons, pointer events need to be handled to draw the buttons correctly. The InputNonClientPointerSource.PointerPressed event can be used to detect when a mouse button is pressed in the non client area (e.g. on a window button). However, when the pointer is moved out of the non client area while the button is pressed, the InputNonClientPointerSource.PointerReleased event is not invoked when the button is finally released. It is invoked once the pointer is moved back. This makes implementing the different window button states correctly basically impossible.
Steps to reproduce the bug
Register for InputNonClientPointerSource.PointerReleased event
Press the mouse button while the pointer is in a non client area and then mvoe it out while keeping the button pressed
Release the button -> Observe that the event is not invoked
Move the pointer back to the non client area -> The event is now invoked
Expected behavior
There should be away to track button releases even when the pointer is moved out of the non client area.
Screenshots
No response
NuGet package version
Windows App SDK 1.5.3: 1.5.240428000
Packaging type
Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
To implement custom drawn window buttons, pointer events need to be handled to draw the buttons correctly. The InputNonClientPointerSource.PointerPressed event can be used to detect when a mouse button is pressed in the non client area (e.g. on a window button). However, when the pointer is moved out of the non client area while the button is pressed, the InputNonClientPointerSource.PointerReleased event is not invoked when the button is finally released. It is invoked once the pointer is moved back. This makes implementing the different window button states correctly basically impossible.
Steps to reproduce the bug
Expected behavior
There should be away to track button releases even when the pointer is moved out of the non client area.
Screenshots
No response
NuGet package version
Windows App SDK 1.5.3: 1.5.240428000
Packaging type
Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: