Skip to content

Commit dc3938e

Browse files
Added update method to handle unlocking
1 parent 5916d9f commit dc3938e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ var HTML5AudioSoundManager = new Class({
126126
});
127127
this.onBlurPausedSounds.length = 0;
128128
},
129+
update: function () {
130+
if (this.touchUnlocked) {
131+
this.touchUnlocked = false;
132+
this.touchLocked = false;
133+
}
134+
BaseSoundManager.prototype.update.call(this);
135+
},
129136
destroy: function () {
130137
BaseSoundManager.prototype.destroy.call(this);
131138
this.onBlurPausedSounds.length = 0;

0 commit comments

Comments
 (0)