fix overlay titlebar height mismatch (22→24px) so close button receives clicks, re-sync ratio on resize
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
win.onResized(async () => {
|
||||
if (enforcing) return
|
||||
await updateSize()
|
||||
// Re-sync ratio from Rust in case it changed (e.g. preset clicked)
|
||||
await syncRatio()
|
||||
if (lockedRatio === null) return
|
||||
// Small debounce to break the SetWindowPos → onResized loop
|
||||
if (resizeDebounce !== null) clearTimeout(resizeDebounce)
|
||||
|
||||
Reference in New Issue
Block a user