Skip to content

Commit bf9c59b

Browse files
committed
fix: volume panel position offset
修复声音面板位置偏移
1 parent 71cbc92 commit bf9c59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qml/toolbar/Toolbar.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,10 @@ FloatingPanel {
515515
isVolSliderShow = !isVolSliderShow;
516516
if (volSliderLoader.status === Loader.Null) {
517517
volSliderLoader.setSource("VolumeSlider.qml");
518-
volSliderLoader.item.x = toolbarRoot.width - 10 * 3 - width * 2;
519518
volSliderLoader.item.y = -255;
520519
volSliderLoader.item.hoveredChanged.connect(onVolSliderHoveredChanged);
521520
}
521+
volSliderLoader.item.x = toolbarRoot.width - 10 * 3 - volumeBtn.width * 2;
522522
volSliderLoader.item.visible = isVolSliderShow;
523523
}
524524
}

0 commit comments

Comments
 (0)