From f393bedb02cce5d360482811c1d677dd5a0f61cb Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Tue, 6 Sep 2022 11:03:37 +0200 Subject: [PATCH] Another attempt at fixing the no-scroll between pages bug --- packages/web/editor.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web/editor.tsx b/packages/web/editor.tsx index e3a50631..ec49f5d6 100644 --- a/packages/web/editor.tsx +++ b/packages/web/editor.tsx @@ -670,6 +670,10 @@ export class Editor { }); } else { editorView.scrollDOM.scrollTop = 0; + editorView.dispatch({ + selection: { anchor: 0 }, + scrollIntoView: true, + }); } editorView.focus(); }