Ensure instant scrolling

This commit is contained in:
momo5502
2025-09-07 10:57:46 +02:00
parent 3c2672b109
commit 562da05a2d

View File

@@ -254,7 +254,10 @@ export class Output extends React.Component<OutputProps, FullOutputState> {
scrollListToEnd() {
if (this.listRef.current && this.state.lines.length > 0) {
this.listRef.current.scrollToRow({ index: this.state.lines.length - 1 });
this.listRef.current.scrollToRow({
index: this.state.lines.length - 1,
behavior: "instant",
});
}
this.setState({ autoScroll: true });