Merge pull request #902 from ClarenceYk/for_test

Update app/components/chat.tsx
This commit is contained in:
Yifei Zhang 2023-04-18 19:10:30 +08:00 committed by GitHub
commit e68f17b463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -708,6 +708,7 @@ export function Chat(props: {
className={styles["chat-body"]}
ref={scrollRef}
onScroll={(e) => onChatBodyScroll(e.currentTarget)}
onMouseDown={() => inputRef.current?.blur()}
onWheel={(e) => setAutoScroll(hitBottom && e.deltaY > 0)}
onTouchStart={() => {
inputRef.current?.blur();