Revert "fix: autoscroll conflict"

This commit is contained in:
Yifei Zhang 2023-04-12 19:48:12 +08:00 committed by GitHub
parent 2b921093e1
commit c1bb53c4e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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);
};