From 276efed48ae0dbaefd62c200acffd57a273add6b Mon Sep 17 00:00:00 2001 From: GabrielDuf Date: Thu, 20 Aug 2026 13:47:13 -0400 Subject: [PATCH 1/2] Stop the pressed shrink from cancelling caption-button clicks Fluent's Button style applies RenderTransform scale(0.98) on :pressed with a 75 ms TransformOperationsTransition, and Button.OnPointerReleased only raises Click when the release position still hit-tests onto the button. On a 46x44 caption button that shrink pulls every edge ~0.45 DIP inward while the button is held, so a press on the outermost pixel row or column lands on the button, the geometry moves out from under the stationary pointer, and the release finds TitleBarDragArea instead: the button keeps its pressed fill and nothing happens. Measured on a maximized window, minimize on the top row: the button's clip goes from (1590, 0, 46, 44) at press to (1590.36, 0.34, 45.28, 43.31) at release, with IsPointerOver false. Injected clicks on that row went 0/8 before this change and 8/8 after. Native caption buttons don't shrink on press, so opt ours out of the transform and keep the background-only state change. The outcome depended on how far the 75 ms transition had run at release, which is why it reproduced on one monitor and not another. Fixes #5269 Co-Authored-By: Claude Opus 5 (1M context) --- src/UniGetUI.Avalonia/Views/MainWindow.axaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/UniGetUI.Avalonia/Views/MainWindow.axaml b/src/UniGetUI.Avalonia/Views/MainWindow.axaml index dbd6127101..383efed2b9 100644 --- a/src/UniGetUI.Avalonia/Views/MainWindow.axaml +++ b/src/UniGetUI.Avalonia/Views/MainWindow.axaml @@ -68,6 +68,9 @@ +