Skip to content

Commit f692aad

Browse files
Replaced touchstart with touchend event when unlocking Web Audio
1 parent 5f3156e commit f692aad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/sound/webaudio/WebAudioSoundManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ var WebAudioSoundManager = new Class({
6767
var _this = this;
6868
if (this.context.state === 'suspended') {
6969
var unlock_1 = function () {
70-
document.body.removeEventListener('touchstart', unlock_1);
70+
document.body.removeEventListener('touchend', unlock_1);
7171
_this.context.resume();
7272
};
73-
document.body.addEventListener('touchstart', unlock_1, false);
73+
document.body.addEventListener('touchend', unlock_1, false);
7474
}
7575
},
7676
onBlur: function () {

0 commit comments

Comments
 (0)