Skip to content

Commit

Permalink
$mol_view $mol_book2 do not scroll to new page in the middle if visible
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Oct 26, 2023
1 parent 54cac27 commit 94dc2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/view/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ namespace $ {

new this.$.$mol_after_frame( ()=> {

this.dom_node().scrollIntoView({ block: 'start', inline: 'end' })
this.dom_node().scrollIntoView({ block: 'start', inline: 'nearest' })
this.focused( true )

} )
Expand Down

0 comments on commit 94dc2ce

Please sign in to comment.