From 95a981d86ccb0706e7a3f4c0a8f116e59a59262d Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Fri, 27 Dec 2024 12:44:58 +0100 Subject: [PATCH] removed 'click' handler for unlocking --- src/sound/webaudio/WebAudioSoundManager.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/sound/webaudio/WebAudioSoundManager.js b/src/sound/webaudio/WebAudioSoundManager.js index 244ee22cd6..ef7a2267a2 100644 --- a/src/sound/webaudio/WebAudioSoundManager.js +++ b/src/sound/webaudio/WebAudioSoundManager.js @@ -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; @@ -333,7 +332,6 @@ var WebAudioSoundManager = new Class({ bodyRemove('touchend', unlockHandler); bodyRemove('mousedown', unlockHandler); bodyRemove('mouseup', unlockHandler); - bodyRemove('click', unlockHandler); bodyRemove('keydown', unlockHandler); }); } @@ -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); } },