aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/assets/player/upnext/upnext-plugin.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/client/src/assets/player/upnext/upnext-plugin.ts b/client/src/assets/player/upnext/upnext-plugin.ts
index 1f0705481..ba9afbe3d 100644
--- a/client/src/assets/player/upnext/upnext-plugin.ts
+++ b/client/src/assets/player/upnext/upnext-plugin.ts
@@ -100,8 +100,8 @@ class EndCard extends Component {
100 let now: number 100 let now: number
101 let newOffset: number 101 let newOffset: number
102 102
103 this.autoplayRing.setAttribute('stroke-dasharray', this.dashOffsetStart) 103 this.autoplayRing.setAttribute('stroke-dasharray', '' + this.dashOffsetStart)
104 this.autoplayRing.setAttribute('stroke-dashoffset', -this.dashOffsetStart) 104 this.autoplayRing.setAttribute('stroke-dashoffset', '' + -this.dashOffsetStart)
105 105
106 this.title.innerHTML = this.getTitle() 106 this.title.innerHTML = this.getTitle()
107 107
@@ -127,8 +127,9 @@ class EndCard extends Component {
127 clearTimeout(timeout) 127 clearTimeout(timeout)
128 cb(false) 128 cb(false)
129 } else { 129 } else {
130 newOffset = Math.max(-this.dashOffsetTotal, this.autoplayRing.getAttribute('stroke-dashoffset') - this.chunkSize) 130 const strokeDashOffset = parseInt(this.autoplayRing.getAttribute('stroke-dashoffset'), 10)
131 this.autoplayRing.setAttribute('stroke-dashoffset', newOffset) 131 newOffset = Math.max(-this.dashOffsetTotal, strokeDashOffset - this.chunkSize)
132 this.autoplayRing.setAttribute('stroke-dashoffset', '' + newOffset)
132 timeout = setTimeout(update.bind(this), this.interval) 133 timeout = setTimeout(update.bind(this), this.interval)
133 } 134 }
134 135