From fc5b24f18ca1e4ae0dcd71492175a43d16fa5b7d Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sat, 2 Nov 2024 00:35:34 +0100 Subject: [PATCH] [mirotalksfu] - fix toggleExtraButtons --- public/js/Room.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/js/Room.js b/public/js/Room.js index 4ba827ef..fed1e3e4 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -35,6 +35,7 @@ let redirect = { let recCodecs = null; let recPrioritizeH264 = false; +let isToggleExtraBtnClicked = false; const _PEER = { presenter: '', @@ -1811,9 +1812,15 @@ function handleButtons() { }; toggleExtraButton.onclick = () => { toggleExtraButtons(); + if (!DetectRTC.isMobileDevice) { + isToggleExtraBtnClicked = true; + setTimeout(() => { + isToggleExtraBtnClicked = false; + }, 2000); + } }; toggleExtraButton.onmouseover = () => { - if (DetectRTC.isMobileDevice) return; + if (isToggleExtraBtnClicked || DetectRTC.isMobileDevice) return; if (control.style.display === 'none') { toggleExtraButtons(); }