From 247caa5c2386213b61965ecf648f408d744311d4 Mon Sep 17 00:00:00 2001 From: rainbownapkin Date: Fri, 6 Dec 2024 05:06:33 -0500 Subject: [PATCH] Fixed bug w/ userList resizing when panel unpinned --- www/js/channel/cpanel.js | 2 +- www/js/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/channel/cpanel.js b/www/js/channel/cpanel.js index cbdc075..1ad698b 100644 --- a/www/js/channel/cpanel.js +++ b/www/js/channel/cpanel.js @@ -26,7 +26,7 @@ class cPanel{ //ClickDragger Objects this.activePanelDragger = new canopyUXUtils.clickDragger("#cpanel-active-drag-handle", "#cpanel-active-div", false); - this.pinnedPanelDragger = new canopyUXUtils.clickDragger("#cpanel-pinned-drag-handle", "#cpanel-pinned-div", false, this.client.userList.clickDragger); + this.pinnedPanelDragger = new canopyUXUtils.clickDragger("#cpanel-pinned-drag-handle", "#cpanel-pinned-div", false, this.client.chatBox.clickDragger); //Element Nodes //Active Panel diff --git a/www/js/utils.js b/www/js/utils.js index cd275b6..fc47f67 100644 --- a/www/js/utils.js +++ b/www/js/utils.js @@ -162,7 +162,7 @@ class canopyUXUtils{ //Come to the ~~dark~~ left side this.leftHandle = leftHandle - //Little hacky but it could be worse :P + //True when the user is actively breaking the screen by dragging too far off to the side this.breakingScreen = false; //we put a click dragger in yo click dragger so you could click and drag while you click and drag