mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 15:49:16 +02:00
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
This commit is contained in:
parent
79219fd695
commit
d67377afd4
2 changed files with 5 additions and 0 deletions
1
changes/changelog.d/1266.bugfix
Normal file
1
changes/changelog.d/1266.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Update playback position slider also when track is paused (#1266)
|
|
@ -551,6 +551,10 @@ export default {
|
||||||
this.updateProgressThrottled.cancel()
|
this.updateProgressThrottled.cancel()
|
||||||
}
|
}
|
||||||
this.currentSound.seek(t)
|
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 () {
|
ended: function () {
|
||||||
let onlyTrack = this.$store.state.queue.tracks.length === 1
|
let onlyTrack = this.$store.state.queue.tracks.length === 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue