Skip to content

πŸ™Œ OpenHands: AI-Driven Development

feat: adjust scroll timeout and scroll behavior (#1526)

Shimada66604306b0219e9
diff --git a/frontend/src/components/ChatInterface.tsx b/frontend/src/components/ChatInterface.tsx
index 982ac99cb1..ee08c01d2f 100644
--- a/frontend/src/components/ChatInterface.tsx
+++ b/frontend/src/components/ChatInterface.tsx
@@ -78,7 +78,7 @@ function MessageList(): JSX.Element {
const messageScroll = () => {
messagesEndRef.current?.scrollIntoView({
- behavior: "smooth",
+ behavior: "auto",
block: "end",
});
};
@@ -89,7 +89,7 @@ function MessageList(): JSX.Element {
const interval = setInterval(() => {
messageScroll();
- }, 1000);
+ }, 100);
// eslint-disable-next-line consistent-return
return () => clearInterval(interval);