Skip to content

Commit 0b4a8b8

Browse files
Removed touchstart event listeners since they don't work for unlocking audio
1 parent f510f71 commit 0b4a8b8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ var HTML5AudioSoundManager = new Class({
7575
var _this = this;
7676
if ('ontouchstart' in window) {
7777
var unlock_1 = function () {
78-
document.body.removeEventListener('touchstart', unlock_1);
7978
document.body.removeEventListener('touchend', unlock_1);
8079
_this.game.cache.audio.entries.each(function (key, tags) {
8180
for (var i = 0; i < tags.length; i++) {
@@ -84,7 +83,6 @@ var HTML5AudioSoundManager = new Class({
8483
return true;
8584
});
8685
};
87-
document.body.addEventListener('touchstart', unlock_1, false);
8886
document.body.addEventListener('touchend', unlock_1, false);
8987
}
9088
},

0 commit comments

Comments
 (0)