From 51a6323b6662b0ae8826fa91c38efb2205086f9a Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 17 Apr 2026 11:27:48 +0200 Subject: [PATCH] hoverpanel: skip re-open animation when panel is already visible --- modules/HoverPanel.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/HoverPanel.qml b/modules/HoverPanel.qml index 878ae3a..7ffd20f 100644 --- a/modules/HoverPanel.qml +++ b/modules/HoverPanel.qml @@ -154,7 +154,13 @@ PanelWindow { return; if (showPanel) { _hideTimer.stop(); - _show(); + // Only replay the open animation if the panel is actually closed or + // currently animating away. If it is already visible, stopping the + // hide timer is sufficient — calling _show() would reset y/opacity to + // 0 and cause a visible flash when the cursor crosses the gap between + // the bar module and the panel. + if (!_winVisible || hideAnim.running) + _show(); } else { _hideTimer.restart(); }