Skip to content

Commit

Permalink
Scroll to top when showing Preview atom.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenmonks committed Aug 29, 2024
1 parent 857b171 commit 8023c03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lurchmath/header-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ export const install = editor => {
editor.insertContent( allPreviewHTML )
editor.undoManager.clear()
editor.selection.setCursorLocation() // deselect new insertions
editor.getWin().scrollTo(0, 0) // scroll the window to the top
}
} )
}
Expand Down

0 comments on commit 8023c03

Please sign in to comment.