Restore native window animations and custom caption hit testing (#4888)

* feat: restore native window animations

* fix: disable native caption button hit testing

* test: remove fake window state assertions
This commit is contained in:
Omar
2026-08-03 18:54:06 -05:00
committed by GitHub
parent f7361fdb72
commit b832da622f
4 changed files with 6 additions and 34 deletions
+2 -2
View File
@@ -252,10 +252,10 @@ $sync["Form"].Add_MouseDoubleClick({
if ($_.OriginalSource.Name -eq "NavDockPanel" -or
$_.OriginalSource.Name -eq "GridBesideNavDockPanel") {
if ($sync["Form"].WindowState -eq [Windows.WindowState]::Normal) {
$sync["Form"].WindowState = [Windows.WindowState]::Maximized
[Windows.SystemCommands]::MaximizeWindow($sync.Form)
}
else{
$sync["Form"].WindowState = [Windows.WindowState]::Normal
[Windows.SystemCommands]::RestoreWindow($sync.Form)
}
}
})