Skip to content

Commit

Permalink
Adjust delay for scrolling to bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
Kratospidey committed Feb 25, 2024
1 parent ff62c85 commit 0c6b706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let isEmojiSelectionMode = false; // Step 1: Introduce the flag
function scrollToBottom() {
setTimeout(() => {
messageContainer.scrollTop = messageContainer.scrollHeight;
}, 5000); // Adjust the delay as needed
}, 3000); // Adjust the delay as needed
}

// Join the chat room
Expand Down

0 comments on commit 0c6b706

Please sign in to comment.