mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
chat: tweak distancefrombottom
This commit is contained in:
parent
781ad6512f
commit
3d9cd560c5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue