microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

NonClientRegionKind.Icon mode of InputNonClientPointerSource.SetRegionRects seems has a bug.

Open agat366 opened this issue 2 years ago • 1 comments

Describe the bug

There seems a bug with NonClientRegionKind.Icon of InputNonClientPointerSource.SetRegionRects. While NonClientRegionKind.Passthrough works well (haven't tested other modes), the .Icon mode does apply clickable area within the element rect provided at first. But only until the window is repositioned (I tried both cases: dragging with mouse and Alt+Space and moving with keyboard). Right after that the icon area reduces to the initial one (for clicking) (as default clickable sysicon area) and stays the same until SetRegionRects is called again (on the bar resized or any other app logic etc.)

Steps to reproduce the bug

The description is quite straightforward. The app logic is simple and basic, generally taken from Microsoft Learn. That seems like testing team didn't came through this.

Expected behavior

The clickable icon area stays the same even after the window position changed.

Screenshots

No response

NuGet package version

Windows App SDK 1.4.4: 1.4.231219000

Packaging type

Unpackaged

Windows version

Windows 10 version 22H2 (19045, 2022 Update)

IDE

No response

Additional context

No response

agat366 avatar Jan 20 '24 12:01 agat366

I have this issue also, seems to be the same issue as https://github.com/microsoft/microsoft-ui-xaml/issues/10379.

aquinn39 avatar Jun 10 '25 09:06 aquinn39