From 5cb0fa3e72ea2849a385c4585bcf9a2d9f87c7aa Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Mon, 3 Jan 2022 14:40:12 +0100 Subject: [PATCH] [mirotalksfu] - fix typo --- public/js/RoomClient.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 54eda162..c94e5993 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -1386,10 +1386,7 @@ class RoomClient { this.isVideoOnFullScreen = this.isVideoOnFullScreen ? false : true; }); videoPlayer.addEventListener('click', () => { - if ( - (this.isMobileDevice && this.isVideoOnFullScreen) || - (!this.isMobileDevice && !this.isVideoOnFullScreen) - ) { + if ((this.isMobileDevice && this.isVideoOnFullScreen) || !this.isMobileDevice) { videoPlayer.style.pointerEvents = this.isVideoOnFullScreen ? 'auto' : 'none'; this.toggleFullScreen(videoPlayer); this.isVideoOnFullScreen = this.isVideoOnFullScreen ? false : true;