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