mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-20 04:03:57 +00:00
Ensure instant scrolling
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user