From b853d7583627c4ac520a255ade3b451dbdcf32cc Mon Sep 17 00:00:00 2001 From: rainbownapkin Date: Thu, 5 Dec 2024 06:43:58 -0500 Subject: [PATCH] Fixed aspect lock while toggling cinema mode. --- www/js/channel/chat.js | 5 ++++- www/js/channel/player.js | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/www/js/channel/chat.js b/www/js/channel/chat.js index 05ced4f..8e7ce96 100644 --- a/www/js/channel/chat.js +++ b/www/js/channel/chat.js @@ -110,6 +110,9 @@ class chatBox{ this.chatBuffer.appendChild(this.chatPreprocessor.preprocess(chatEntry)); + + //Set size to aspect on launch + this.resizeAspect(); } async send(event){ @@ -181,7 +184,7 @@ class chatBox{ if(this.aspectLock){ this.sizeToAspect(); }else{ - this.client.userList.clickDragger.fixCutoff(); + this.client.userList.clickDragger.fixCutoff(); } } diff --git a/www/js/channel/player.js b/www/js/channel/player.js index 85ee37b..72eb213 100644 --- a/www/js/channel/player.js +++ b/www/js/channel/player.js @@ -84,6 +84,9 @@ class player{ }else{ this.navBar.style.display = "none"; } + + //Resize the video if we're aspect locked + this.client.chatBox.resizeAspect(); } setOnUI(onUI){