From 3d9cd560c568d1bbf05d9824c1498febb1285c9a Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sun, 21 Apr 2024 14:16:43 -0500 Subject: [PATCH] chat: tweak distancefrombottom --- public/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/chat.js b/public/js/chat.js index fcd64749..c65087e9 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -132,7 +132,7 @@ Maintain a friendly, patient, supportive tone. Prioritize the user's learning an const distanceFromBottom = chatBox.scrollHeight - chatBox.scrollTop - chatBox.clientHeight; // If the distance from the bottom is small (or zero), the user is at the bottom - if (distanceFromBottom < 1) { + if (distanceFromBottom < 5) { shouldAutoScroll = true; } else { // If the user has scrolled up, disable auto-scrolling