add deeper debug logging to HoverPanel and Volume

This commit is contained in:
Damocles 2026-04-13 22:34:35 +02:00
parent 6f907fd027
commit 8eaf64eac6
2 changed files with 16 additions and 3 deletions

View file

@ -55,13 +55,17 @@ PanelWindow {
interval: 50 interval: 50
onTriggered: { onTriggered: {
if (!root.showPanel) { if (!root.showPanel) {
console.log("[hp:" + panelNamespace + "] hideTimer fired, starting hideAnim");
showAnim.stop(); showAnim.stop();
hideAnim.start(); hideAnim.start();
} }
} }
} }
on_WinVisibleChanged: console.log("[hp:" + panelNamespace + "] _winVisible →", _winVisible)
onShowPanelChanged: { onShowPanelChanged: {
console.log("[hp:" + panelNamespace + "] showPanel →", showPanel);
if (showPanel) { if (showPanel) {
_hideTimer.stop(); _hideTimer.stop();
_updatePosition(); _updatePosition();
@ -107,11 +111,15 @@ PanelWindow {
duration: 150 duration: 150
easing.type: Easing.InCubic easing.type: Easing.InCubic
} }
onStarted: console.log("[hp:" + panelNamespace + "] hideAnim started")
onFinished: root._winVisible = false onFinished: root._winVisible = false
} }
HoverHandler { HoverHandler {
onHoveredChanged: root.panelHovered = hovered onHoveredChanged: {
console.log("[hp:" + panelNamespace + "] hovered →", hovered);
root.panelHovered = hovered;
}
} }
M.PopupBackground { M.PopupBackground {

View file

@ -43,8 +43,13 @@ M.BarSection {
readonly property bool _anyHover: root._hovered || hoverPanel.panelHovered readonly property bool _anyHover: root._hovered || hoverPanel.panelHovered
readonly property bool _showPanel: _anyHover || _expanded || _osdActive readonly property bool _showPanel: _anyHover || _expanded || _osdActive
on_ShowPanelChanged: if (!_showPanel) on_ShowPanelChanged: {
_expanded = false console.log("[vol] showPanel →", _showPanel, "| expanded:", _expanded, "| anyHover:", _anyHover);
if (!_showPanel)
_expanded = false;
}
on_ExpandedChanged: console.log("[vol] expanded →", _expanded)
onVolumeChanged: _flashPanel() onVolumeChanged: _flashPanel()
onMutedChanged: _flashPanel() onMutedChanged: _flashPanel()