From 6480caf604d06778109cb58e5983d883725838a9 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Wed, 22 Nov 2023 18:34:46 +0100 Subject: adjust offset --- webAO/client/appendICLog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webAO/client/appendICLog.ts') diff --git a/webAO/client/appendICLog.ts b/webAO/client/appendICLog.ts index bb95920..307009c 100644 --- a/webAO/client/appendICLog.ts +++ b/webAO/client/appendICLog.ts @@ -48,7 +48,7 @@ export function appendICLog( const clientLog = document.getElementById("client_log")!; clientLog.appendChild(entry); - if (clientLog.scrollTop+clientLog.offsetHeight+50>clientLog.scrollHeight) + if (clientLog.scrollTop+clientLog.offsetHeight+120>clientLog.scrollHeight) clientLog.scrollTo(0, clientLog.scrollHeight); setLastICMessageTime(new Date()); -- cgit