Skip to content

Commit f832c35

Browse files
Properly setting previousTime value when setting seek value
1 parent de08ac3 commit f832c35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ Object.defineProperty(HTML5AudioSound.prototype, 'seek', {
290290
if (this.isPlaying || this.isPaused) {
291291
value = Math.min(Math.max(0, value), this.duration);
292292
if (this.isPlaying) {
293-
this.previousTime =
294-
this.audio.currentTime = value;
293+
this.previousTime = value;
294+
this.audio.currentTime = value;
295295
}
296296
else if (this.isPaused) {
297297
this.currentConfig.seek = value;

0 commit comments

Comments
 (0)