fix(docK): fix static dock auto retraction when mouse stays on the peek zone

This commit is contained in:
Lemmy
2026-03-12 20:34:43 -04:00
parent 906d265bce
commit 072dd859ae
2 changed files with 9 additions and 4 deletions
+6 -1
View File
@@ -741,7 +741,12 @@ Loader {
onExited: {
peekHovered = false;
showTimer.stop();
if (!hidden && !dockHovered && !anyAppHovered && !menuHovered) {
if (isStaticMode) {
// Start hideTimer which checks panel.isDockHovered before closing
if (!dockHovered && !anyAppHovered && !menuHovered) {
hideTimer.restart();
}
} else if (!hidden && !dockHovered && !anyAppHovered && !menuHovered) {
hideTimer.restart();
}
}
+3 -3
View File
@@ -70,9 +70,9 @@ SmartPanel {
}
onOpened: {
if (!panelHovered && !menuHovered) {
hoverCloseTimer.restart();
}
// Don't auto-start close timer here — the peek zone's onExited in Dock.qml
// starts hideTimer which checks panel.isDockHovered, giving the user time
// to move into the panel without it closing prematurely.
}
panelAnchorTop: dockPosition === "top"