Skip to content

Commit

Permalink
Fix auto scrolling (#9299)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchiodo authored Mar 9, 2022
1 parent 9851e85 commit 7b38613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/2 Fixes/9259.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix auto scrolling in the interactive window.
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ export class InteractiveWindow implements IInteractiveWindowLoadable {
// since the notebook cell we're going to add is by definition not visible
const shouldScroll =
editor?.visibleRanges.find((r) => {
return r.end === editor.document.cellCount - 1;
return r.end === editor.document.cellCount;
}) != undefined ||
this.pendingNotebookScrolls.find((r) => r.end == editor.document.cellCount - 1) != undefined;

Expand Down

0 comments on commit 7b38613

Please sign in to comment.