diff --git a/src/renderer/plugins/sync-scroll.ts b/src/renderer/plugins/sync-scroll.ts index dd8dd1b9..fdc79db8 100644 --- a/src/renderer/plugins/sync-scroll.ts +++ b/src/renderer/plugins/sync-scroll.ts @@ -40,7 +40,7 @@ export default { await ctx.editor.whenEditorReady() disableSyncScroll(async () => { - ctx.editor.setScrollToTop(position.editor || 1) + ctx.editor.setScrollToTop(position.editor || 0) if (typeof position.view === 'number') { await sleep(0) ctx.view.scrollTopTo(position.view)