fix volume mixer: separate PopupPanel to avoid layer-shell resize issue
This commit is contained in:
parent
8c915605f2
commit
df53abcc43
3 changed files with 43 additions and 68 deletions
|
|
@ -62,10 +62,7 @@ PanelWindow {
|
|||
}
|
||||
}
|
||||
|
||||
on_WinVisibleChanged: console.log("[hp:" + panelNamespace + "] _winVisible →", _winVisible)
|
||||
|
||||
onShowPanelChanged: {
|
||||
console.log("[hp:" + panelNamespace + "] showPanel →", showPanel);
|
||||
if (showPanel) {
|
||||
_hideTimer.stop();
|
||||
_updatePosition();
|
||||
|
|
@ -111,15 +108,11 @@ PanelWindow {
|
|||
duration: 150
|
||||
easing.type: Easing.InCubic
|
||||
}
|
||||
onStarted: console.log("[hp:" + panelNamespace + "] hideAnim started")
|
||||
onFinished: root._winVisible = false
|
||||
}
|
||||
|
||||
HoverHandler {
|
||||
onHoveredChanged: {
|
||||
console.log("[hp:" + panelNamespace + "] hovered →", hovered);
|
||||
root.panelHovered = hovered;
|
||||
}
|
||||
onHoveredChanged: root.panelHovered = hovered
|
||||
}
|
||||
|
||||
M.PopupBackground {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue