forked from XiaoMo/ChatGPT-Next-Web
Revert "fix: autoscroll conflict"
This commit is contained in:
parent
2b921093e1
commit
c1bb53c4e3
@ -354,7 +354,6 @@ export function Chat(props: {
|
||||
const [hitBottom, setHitBottom] = useState(false);
|
||||
|
||||
const onChatBodyScroll = (e: HTMLElement) => {
|
||||
setAutoScroll(false);
|
||||
const isTouchBottom = e.scrollTop + e.clientHeight >= e.scrollHeight - 20;
|
||||
setHitBottom(isTouchBottom);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user