Skip to content

Commit e356598

Browse files
committed
Update Console.js
1 parent ca8d736 commit e356598

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/app/Console.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ const Console = observer(({ run }) => {
1313
}
1414
}
1515

16-
isAtBottom = () => {
17-
const { scrollTop, scrollHeight, clientHeight } = this.stdoutContainer;
18-
const diff = scrollHeight - clientHeight;
19-
const scrollIsAtBottom = scrollTop === diff;
20-
return scrollIsAtBottom;
21-
};
22-
2316
const scrollConsoleToBottom = useCallback(() => {
2417
if (!stdoutContainerRef.current) return;
2518
const { scrollHeight, clientHeight } = stdoutContainerRef.current;

0 commit comments

Comments
 (0)