hover panels: use HoverHandler instead of MouseArea for hover tracking

This commit is contained in:
Damocles 2026-04-13 00:59:59 +02:00
parent 4fa08f9748
commit 9874a9c094
3 changed files with 6 additions and 12 deletions

View file

@ -170,10 +170,8 @@ M.BarSection {
onFinished: panel._winVisible = false onFinished: panel._winVisible = false
} }
MouseArea { HoverHandler {
anchors.fill: parent onHoveredChanged: root._panelHovered = hovered
hoverEnabled: true
onContainsMouseChanged: root._panelHovered = containsMouse
} }
Rectangle { Rectangle {

View file

@ -176,10 +176,8 @@ M.BarSection {
onFinished: panel._winVisible = false onFinished: panel._winVisible = false
} }
MouseArea { HoverHandler {
anchors.fill: parent onHoveredChanged: root._panelHovered = hovered
hoverEnabled: true
onContainsMouseChanged: root._panelHovered = containsMouse
} }
Rectangle { Rectangle {

View file

@ -180,10 +180,8 @@ M.BarSection {
} }
// Keep panel open when mouse is over it // Keep panel open when mouse is over it
MouseArea { HoverHandler {
anchors.fill: parent onHoveredChanged: root._panelHovered = hovered
hoverEnabled: true
onContainsMouseChanged: root._panelHovered = containsMouse
// Click inside panel doesn't dismiss // Click inside panel doesn't dismiss
} }