mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Updating previousTime property when setting seek value
This commit is contained in:
parent
1cdebc80c3
commit
2a76c6eff5
1 changed files with 2 additions and 1 deletions
|
@ -284,7 +284,8 @@ Object.defineProperty(HTML5AudioSound.prototype, 'seek', {
|
|||
if (this.isPlaying || this.isPaused) {
|
||||
value = Math.min(Math.max(0, value), this.duration);
|
||||
if (this.isPlaying) {
|
||||
this.audio.currentTime = value;
|
||||
this.previousTime =
|
||||
this.audio.currentTime = value;
|
||||
}
|
||||
else if (this.isPaused) {
|
||||
this.currentConfig.seek = value;
|
||||
|
|
Loading…
Add table
Reference in a new issue