From ee08ba8a26d482e75cb1dca6a7eb689621de0a7c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 11 Sep 2022 12:52:27 +0200 Subject: fix scroll --- client-web/source/chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client-web/source/chat.ts') diff --git a/client-web/source/chat.ts b/client-web/source/chat.ts index 70f8cd2..2ee08fc 100644 --- a/client-web/source/chat.ts +++ b/client-web/source/chat.ts @@ -69,7 +69,7 @@ export class Chat extends OverlayUi { this.shown = true const e = ediv({ class: "message" }, espan(sender.display_name, { class: "author" }), ": ", ...els) this.messages.append(e) - e.scrollIntoView() + e.scrollIntoView({ block: "end", behavior: "smooth", inline: "end" }) let body_str = "(empty message)" if (message.text) body_str = message.text -- cgit v1.2.3-70-g09d2