From b8af2e05819954e9f8ae20c1b582f619368f6d66 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 24 Aug 2022 09:47:52 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5711 --- app/src/protyle/util/onGet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts index 4f171d139..9fa2405d8 100644 --- a/app/src/protyle/util/onGet.ts +++ b/app/src/protyle/util/onGet.ts @@ -119,7 +119,7 @@ export const onGet = (data: IWebSocketData, protyle: IProtyle, action: string[] unScroll: (scrollObj && scrollObj.focusId) ? true : false, }, protyle); - if (scrollObj) { + if (scrollObj && protyle.options.mode === "wysiwyg") { restoreScroll(protyle, scrollObj); } const loadingElement = protyle.element.querySelector(".fn__loading");