Skip to content

Commit

Permalink
Use MDN Sample Code to Check Scroll to Bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind committed Sep 7, 2023
1 parent 079960a commit 9e733d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/console/src/Console.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ export class Console extends PureComponent<ConsoleProps, ConsoleState> {
assertNotNull(pane);
if (
!force &&
Math.round(pane.scrollTop) < pane.scrollHeight - pane.offsetHeight
Math.abs(pane.scrollHeight - pane.clientHeight - pane.scrollTop) >= 1
) {
return;
}
Expand Down

0 comments on commit 9e733d7

Please sign in to comment.