Using touchLocked value as condition

This commit is contained in:
Pavle Goloskokovic 2018-01-17 17:29:18 +01:00
parent f52cfee58a
commit 38e59f6f4b

View file

@ -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) {