mirror of
https://github.com/photonstorm/phaser
synced 2024-12-17 16:43:30 +00:00
Using touchLocked value as condition
This commit is contained in:
parent
f52cfee58a
commit
38e59f6f4b
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ var HTML5AudioSoundManager = new Class({
|
|||
},
|
||||
unlock: function () {
|
||||
var _this = this;
|
||||
if ('ontouchstart' in window) {
|
||||
if (this.touchLocked) {
|
||||
var unlock_1 = function () {
|
||||
document.body.removeEventListener('touchend', unlock_1);
|
||||
_this.game.cache.audio.entries.each(function (key, tags) {
|
||||
|
|
Loading…
Reference in a new issue