From b145b4b076603a8e1042c3343bf6100736503621 Mon Sep 17 00:00:00 2001 From: Cloyd Lau <31238760+cloydlau@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:16:07 +0800 Subject: [PATCH] Revert "fix: text mode loads partially scrolled down" This reverts commit 56e18ee0573e4af7731a725133e93dc179e2857e. --- src/lib/components/modes/textmode/TextMode.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/components/modes/textmode/TextMode.svelte b/src/lib/components/modes/textmode/TextMode.svelte index fb80dc6b..17b1efa6 100644 --- a/src/lib/components/modes/textmode/TextMode.svelte +++ b/src/lib/components/modes/textmode/TextMode.svelte @@ -618,8 +618,7 @@ codeMirrorView = new EditorView({ state, - parent: target, - scrollTo: EditorView.scrollIntoView(0) // see https://discuss.codemirror.net/t/editor-starts-partially-scrolled-down/7567 + parent: target }) return codeMirrorView