mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Returning value from getCurrentTime in seek property getter only if sound is currently playing
This commit is contained in:
parent
6c7f7ae732
commit
5a5444e936
1 changed files with 3 additions and 1 deletions
|
@ -265,7 +265,9 @@ Object.defineProperty(WebAudioSound.prototype, 'detune', {
|
|||
*/
|
||||
Object.defineProperty(WebAudioSound.prototype, 'seek', {
|
||||
get: function () {
|
||||
return this.getCurrentTime();
|
||||
if (this.isPlaying) {
|
||||
return this.getCurrentTime();
|
||||
}
|
||||
},
|
||||
set: function (value) {
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue