Skip to content

Commit

Permalink
removed 'click' handler for unlocking
Browse files Browse the repository at this point in the history
  • Loading branch information
pavle-goloskokovic committed Dec 27, 2024
1 parent 53081c5 commit 95a981d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/sound/webaudio/WebAudioSoundManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ var WebAudioSoundManager = new Class({
bodyRemove('touchend', unlockHandler);
bodyRemove('mousedown', unlockHandler);
bodyRemove('mouseup', unlockHandler);
bodyRemove('click', unlockHandler);
bodyRemove('keydown', unlockHandler);

_this.unlocked = true;
Expand All @@ -333,7 +332,6 @@ var WebAudioSoundManager = new Class({
bodyRemove('touchend', unlockHandler);
bodyRemove('mousedown', unlockHandler);
bodyRemove('mouseup', unlockHandler);
bodyRemove('click', unlockHandler);
bodyRemove('keydown', unlockHandler);
});
}
Expand All @@ -345,7 +343,6 @@ var WebAudioSoundManager = new Class({
body.addEventListener('touchend', unlockHandler, false);
body.addEventListener('mousedown', unlockHandler, false);
body.addEventListener('mouseup', unlockHandler, false);
body.addEventListener('click', unlockHandler, false);
body.addEventListener('keydown', unlockHandler, false);
}
},
Expand Down

0 comments on commit 95a981d

Please sign in to comment.