From 94dc2ce386770a3ad1c7d590ff712e9780482580 Mon Sep 17 00:00:00 2001 From: Stefan Zerkalica Date: Thu, 26 Oct 2023 15:55:19 +0300 Subject: [PATCH] $mol_view $mol_book2 do not scroll to new page in the middle if visible --- view/view/view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/view/view.ts b/view/view/view.ts index 9a86cb48d07..1ad7d2ff4dd 100644 --- a/view/view/view.ts +++ b/view/view/view.ts @@ -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 ) } )