diff --git a/src/console/index.ts b/src/console/index.ts index 020a5a2..a1aa51f 100644 --- a/src/console/index.ts +++ b/src/console/index.ts @@ -698,7 +698,7 @@ export default class Console extends Component { let isAtBottom = false if (scrollHeight === offsetHeight) { isAtBottom = true - } else if (scrollTop === scrollHeight - offsetHeight) { + } else if (Math.abs(scrollHeight - offsetHeight - scrollTop) < 1) { isAtBottom = true } this.isAtBottom = isAtBottom