Skip to content

Commit 654c8d7

Browse files
committed
Delay scrolling after calculation
1 parent 4f5abd8 commit 654c8d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/src/App.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ export default function App({ widget = false }: { widget?: boolean }) {
9999
{result}
100100
</>
101101
));
102-
pendingOutput.current?.scrollIntoView({ behavior: 'smooth' });
102+
setTimeout(() => {
103+
pendingOutput.current?.scrollIntoView({ behavior: 'smooth' });
104+
}, 50);
103105
});
104106
},
105107
[currentInput, submit, onInput, downArrow, upArrow, evaluate],

0 commit comments

Comments
 (0)