From 38e7dd937ef182635b4f2ecbd796e0a2784889d6 Mon Sep 17 00:00:00 2001 From: Cloyd Lau <31238760+cloydlau@users.noreply.github.com> Date: Fri, 26 Jul 2024 15:38:56 +0800 Subject: [PATCH] fix: revert the "text mode loads partially scrolled down" fix (#471) --- 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