mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(docK): fix static dock auto retraction when mouse stays on the peek zone
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user