Skip to content

Commit

Permalink
Delay scrolling after calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
printfn committed Dec 7, 2024
1 parent 4f5abd8 commit 654c8d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ export default function App({ widget = false }: { widget?: boolean }) {
{result}
</>
));
pendingOutput.current?.scrollIntoView({ behavior: 'smooth' });
setTimeout(() => {
pendingOutput.current?.scrollIntoView({ behavior: 'smooth' });
}, 50);
});
},
[currentInput, submit, onInput, downArrow, upArrow, evaluate],
Expand Down

0 comments on commit 654c8d7

Please sign in to comment.