From d67377afd44b330d843b51b0e49e3840ae6aba58 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Fri, 20 Nov 2020 22:31:51 +0100 Subject: [PATCH] Update playback position slider also when track is paused Fixes the UI not updating when clicking the position slider while playback is paused. Fixes #1266 --- changes/changelog.d/1266.bugfix | 1 + front/src/components/audio/Player.vue | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 changes/changelog.d/1266.bugfix diff --git a/changes/changelog.d/1266.bugfix b/changes/changelog.d/1266.bugfix new file mode 100644 index 000000000..e1b4f202b --- /dev/null +++ b/changes/changelog.d/1266.bugfix @@ -0,0 +1 @@ +Update playback position slider also when track is paused (#1266) \ No newline at end of file diff --git a/front/src/components/audio/Player.vue b/front/src/components/audio/Player.vue index d75833b9c..8b9c13d17 100644 --- a/front/src/components/audio/Player.vue +++ b/front/src/components/audio/Player.vue @@ -551,6 +551,10 @@ export default { this.updateProgressThrottled.cancel() } this.currentSound.seek(t) + // If player is paused update progress immediately to ensure updated UI + if (!this.$store.state.player.playing) { + this.updateProgress() + } }, ended: function () { let onlyTrack = this.$store.state.queue.tracks.length === 1