diff --git a/osd/PlayerControl.qml b/osd/PlayerControl.qml index 2a43c4e..8c04ef8 100644 --- a/osd/PlayerControl.qml +++ b/osd/PlayerControl.qml @@ -189,10 +189,10 @@ Item { text: playerController.player?.trackArtist } Rectangle { - id: scrubber + id: scrubber Layout.fillWidth: true - Layout.preferredHeight: 8 - Layout.rightMargin: 8 + Layout.preferredHeight: 8 + Layout.rightMargin: 8 color: blendedColors.colLayer1 visible: playerController.player?.length > 0 @@ -206,13 +206,13 @@ Item { } MouseArea { - id: scrubberInteract - anchors.fill: parent + id: scrubberInteract + anchors.fill: parent onClicked: { - if (playerController.player) { - var pos = (mouseX / parent.width) * playerController.player.length - playerController.player.position = pos - } + if (playerController.player) { + var pos = (mouseX / parent.width) * playerController.player.length + playerController.player.position = pos + } } } }