We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f52cfee commit 38e59f6Copy full SHA for 38e59f6
1 file changed
src/sound/html5/HTML5AudioSoundManager.js
@@ -90,7 +90,7 @@ var HTML5AudioSoundManager = new Class({
90
},
91
unlock: function () {
92
var _this = this;
93
- if ('ontouchstart' in window) {
+ if (this.touchLocked) {
94
var unlock_1 = function () {
95
document.body.removeEventListener('touchend', unlock_1);
96
_this.game.cache.audio.entries.each(function (key, tags) {
0 commit comments