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