We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38e59f6 commit 644a28cCopy full SHA for 644a28c
1 file changed
src/sound/html5/HTML5AudioSoundManager.js
@@ -93,15 +93,15 @@ var HTML5AudioSoundManager = new Class({
93
if (this.touchLocked) {
94
var unlock_1 = function () {
95
document.body.removeEventListener('touchend', unlock_1);
96
+ var allTags = [];
97
_this.game.cache.audio.entries.each(function (key, tags) {
98
for (var i = 0; i < tags.length; i++) {
- tags[i].load();
99
+ allTags.push(tags[i]);
100
}
101
return true;
102
});
- _this.forEachActiveSound(function (sound) {
103
- sound.pause();
104
- sound.resume();
+ allTags.forEach(function (tag) {
+ tag.load();
105
106
};
107
document.body.addEventListener('touchend', unlock_1, false);
0 commit comments