mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixed collapsing chat when clicking the navbar
This commit is contained in:
parent
452014019f
commit
4b06b43b43
|
@ -41,7 +41,7 @@
|
||||||
if (x != undefined) {
|
if (x != undefined) {
|
||||||
rightCollapseButton = x;
|
rightCollapseButton = x;
|
||||||
|
|
||||||
x.addEventListener("mouseup", () => {
|
x.addEventListener("click", () => {
|
||||||
let y = findChatDiv();
|
let y = findChatDiv();
|
||||||
|
|
||||||
if (parseInt(y.style.width) == 0) {
|
if (parseInt(y.style.width) == 0) {
|
||||||
|
@ -78,6 +78,8 @@
|
||||||
let x = findNavBar();
|
let x = findNavBar();
|
||||||
|
|
||||||
x.addEventListener("mouseup", () => {
|
x.addEventListener("mouseup", () => {
|
||||||
|
console.log(isCollapsed)
|
||||||
|
|
||||||
if (!isCollapsed) {
|
if (!isCollapsed) {
|
||||||
let collapse = findRightCollapse();
|
let collapse = findRightCollapse();
|
||||||
collapse.click();
|
collapse.click();
|
||||||
|
|
Loading…
Reference in a new issue