diff --git a/modules/HoverPanel.qml b/modules/HoverPanel.qml index 5935c40..e368042 100644 --- a/modules/HoverPanel.qml +++ b/modules/HoverPanel.qml @@ -50,15 +50,26 @@ PanelWindow { margins.left = Math.max(0, Math.min(Math.round(pt.x - (scr?.x ?? 0) - contentWidth / 2), sw - contentWidth)); } + Timer { + id: _hideTimer + interval: 50 + onTriggered: { + if (!root.showPanel) { + showAnim.stop(); + hideAnim.start(); + } + } + } + onShowPanelChanged: { if (showPanel) { + _hideTimer.stop(); _updatePosition(); _winVisible = true; hideAnim.stop(); showAnim.start(); } else { - showAnim.stop(); - hideAnim.start(); + _hideTimer.restart(); } }