From 55627bc15751a8ae0308a3f520e84f6dffc51e81 Mon Sep 17 00:00:00 2001 From: Damocles Date: Mon, 13 Apr 2026 21:59:59 +0200 Subject: [PATCH] fix hover panel hide race with 50ms debounce --- modules/HoverPanel.qml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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(); } }