We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca8d736 commit e356598Copy full SHA for e356598
1 file changed
src/app/Console.js
@@ -13,13 +13,6 @@ const Console = observer(({ run }) => {
13
}
14
15
16
- isAtBottom = () => {
17
- const { scrollTop, scrollHeight, clientHeight } = this.stdoutContainer;
18
- const diff = scrollHeight - clientHeight;
19
- const scrollIsAtBottom = scrollTop === diff;
20
- return scrollIsAtBottom;
21
- };
22
-
23
const scrollConsoleToBottom = useCallback(() => {
24
if (!stdoutContainerRef.current) return;
25
const { scrollHeight, clientHeight } = stdoutContainerRef.current;
0 commit comments