mirror of
https://github.com/photonstorm/phaser
synced 2025-03-06 00:07:31 +00:00
Removed touchstart event listeners since they don't work for unlocking audio
This commit is contained in:
parent
f510f71213
commit
0b4a8b8b2d
1 changed files with 0 additions and 2 deletions
|
@ -75,7 +75,6 @@ var HTML5AudioSoundManager = new Class({
|
|||
var _this = this;
|
||||
if ('ontouchstart' in window) {
|
||||
var unlock_1 = function () {
|
||||
document.body.removeEventListener('touchstart', unlock_1);
|
||||
document.body.removeEventListener('touchend', unlock_1);
|
||||
_this.game.cache.audio.entries.each(function (key, tags) {
|
||||
for (var i = 0; i < tags.length; i++) {
|
||||
|
@ -84,7 +83,6 @@ var HTML5AudioSoundManager = new Class({
|
|||
return true;
|
||||
});
|
||||
};
|
||||
document.body.addEventListener('touchstart', unlock_1, false);
|
||||
document.body.addEventListener('touchend', unlock_1, false);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue