Skip to content

Commit

Permalink
[mirotalksfu] - fix toggleExtraButtons
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Nov 1, 2024
1 parent cc96da0 commit fc5b24f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion public/js/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ let redirect = {

let recCodecs = null;
let recPrioritizeH264 = false;
let isToggleExtraBtnClicked = false;

const _PEER = {
presenter: '<i class="fa-solid fa-user-shield"></i>',
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit fc5b24f

Please sign in to comment.