tweak scroll tolerance
This commit is contained in:
1 parent
68cd41a6dc
commit
71a770c24e
1 file changed
+1
-1
@@ -36,7 +36,7 @@ export const Chat: FC<Props> = ({ conversation, models, messageIsStreaming, mode
|
||||
const handleScroll = () => {
|
||||
if (chatContainerRef.current) {
|
||||
const { scrollTop, scrollHeight, clientHeight } = chatContainerRef.current;
|
||||
const bottomTolerance = 50;
|
||||
const bottomTolerance = 30;
|
||||
|
||||
if (scrollTop + clientHeight < scrollHeight - bottomTolerance) {
|
||||
setAutoScrollEnabled(false);
|
||||
|
||||
Reference in new issue
Block a user