mirror of
https://github.com/photonstorm/phaser
synced 2024-12-17 08:33:40 +00:00
Resetting already started sounds before unlocking
This commit is contained in:
parent
0b4a8b8b2d
commit
be7741ed89
1 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,10 @@ var HTML5AudioSoundManager = new Class({
|
|||
}
|
||||
return true;
|
||||
});
|
||||
_this.forEachActiveSound(function (sound) {
|
||||
sound.pause();
|
||||
sound.resume();
|
||||
});
|
||||
};
|
||||
document.body.addEventListener('touchend', unlock_1, false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue