From e0f2520fb03ed07a38e96c012c0f599b2fbe7f04 Mon Sep 17 00:00:00 2001 From: RblSb Date: Sun, 26 Apr 2020 06:14:07 +0300 Subject: Fix autoscroll with unloaded images --- src/client/Buttons.hx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/client/Buttons.hx') diff --git a/src/client/Buttons.hx b/src/client/Buttons.hx index a7dd4e1..d4533bf 100644 --- a/src/client/Buttons.hx +++ b/src/client/Buttons.hx @@ -90,6 +90,7 @@ class Buttons { settings.isExtendedPlayer = isExtended; writeSplitSize(); window.dispatchEvent(new Event("resize")); + main.scrollChatToEnd(); } if (settings.isExtendedPlayer) extendPlayer.onclick(); @@ -281,6 +282,7 @@ class Buttons { initSplit(); swapLayoutBtn.blur(); hideMenus(); + main.scrollChatToEnd(); } if (settings.isSwapped) swapLayoutBtn.onclick(); final removeBtn = ge("#removeVideoBtn"); -- cgit v1.2.3