perf: 参数值

This commit is contained in:
archer
2023-04-21 19:55:56 +08:00
parent 3c0fa30aaf
commit 4f51839026
7 changed files with 114 additions and 27 deletions

View File

@@ -88,7 +88,7 @@ const Chat = ({ chatId }: { chatId: string }) => {
throttle(() => {
if (!ChatBox.current) return;
const isBottom =
ChatBox.current.scrollTop + ChatBox.current.clientHeight + 50 >=
ChatBox.current.scrollTop + ChatBox.current.clientHeight + 80 >=
ChatBox.current.scrollHeight;
isBottom && scrollToBottom('auto');