Skip to content

Commit 38e59f6

Browse files
Using touchLocked value as condition
1 parent f52cfee commit 38e59f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ var HTML5AudioSoundManager = new Class({
9090
},
9191
unlock: function () {
9292
var _this = this;
93-
if ('ontouchstart' in window) {
93+
if (this.touchLocked) {
9494
var unlock_1 = function () {
9595
document.body.removeEventListener('touchend', unlock_1);
9696
_this.game.cache.audio.entries.each(function (key, tags) {

0 commit comments

Comments
 (0)