forked from XiaoMo/ChatGPT-Next-Web
opt: back to auto scroll
This commit is contained in:
parent
ec88785b6d
commit
c2a79e8a11
@ -528,7 +528,7 @@ export function Chat(props: {
|
||||
className={styles["chat-body"]}
|
||||
ref={scrollRef}
|
||||
onScroll={(e) => onChatBodyScroll(e.currentTarget)}
|
||||
onWheel={() => setAutoScroll(false)}
|
||||
onWheel={(e) => setAutoScroll(hitBottom && e.deltaY > 0)}
|
||||
onTouchStart={() => {
|
||||
inputRef.current?.blur();
|
||||
setAutoScroll(false);
|
||||
|
Loading…
Reference in New Issue
Block a user