mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-25 17:15:37 +02:00
lint/format
This commit is contained in:
@@ -113,9 +113,12 @@ const ChatHistory = forwardRef(function ChatHistory(
|
||||
isProgrammaticScroll.current = true;
|
||||
scrollToTop(smooth);
|
||||
// Reset flag after scroll animation completes
|
||||
setTimeout(() => {
|
||||
isProgrammaticScroll.current = false;
|
||||
}, smooth ? 500 : 50);
|
||||
setTimeout(
|
||||
() => {
|
||||
isProgrammaticScroll.current = false;
|
||||
},
|
||||
smooth ? 500 : 50
|
||||
);
|
||||
},
|
||||
scrollToBottom: (smooth = true) => {
|
||||
isProgrammaticScroll.current = true;
|
||||
@@ -123,9 +126,12 @@ const ChatHistory = forwardRef(function ChatHistory(
|
||||
setIsUserScrolling(false);
|
||||
// Reset flag after scroll animation completes
|
||||
// isAtBottom will be set naturally by the scroll handler
|
||||
setTimeout(() => {
|
||||
isProgrammaticScroll.current = false;
|
||||
}, smooth ? 500 : 50);
|
||||
setTimeout(
|
||||
() => {
|
||||
isProgrammaticScroll.current = false;
|
||||
},
|
||||
smooth ? 500 : 50
|
||||
);
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user