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;