diff --git a/client/components/player/PlayerTrackBar.vue b/client/components/player/PlayerTrackBar.vue index 2f832785..3afc5d06 100644 --- a/client/components/player/PlayerTrackBar.vue +++ b/client/components/player/PlayerTrackBar.vue @@ -57,7 +57,6 @@ export default { }, watch: { duration: { - immediate: true, handler() { this.setChapterTicks() } @@ -205,10 +204,14 @@ export default { }, windowResize() { this.setTrackWidth() + this.setChapterTicks() + this.updatePlayedTrackWidth() + this.updateBufferTrack() } }, mounted() { this.setTrackWidth() + this.setChapterTicks() window.addEventListener('resize', this.windowResize) }, beforeDestroy() {