Skip to content

Commit 2a76c6e

Browse files
Updating previousTime property when setting seek value
1 parent 1cdebc8 commit 2a76c6e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ Object.defineProperty(HTML5AudioSound.prototype, 'seek', {
284284
if (this.isPlaying || this.isPaused) {
285285
value = Math.min(Math.max(0, value), this.duration);
286286
if (this.isPlaying) {
287-
this.audio.currentTime = value;
287+
this.previousTime =
288+
this.audio.currentTime = value;
288289
}
289290
else if (this.isPaused) {
290291
this.currentConfig.seek = value;

0 commit comments

Comments
 (0)