From 6b34eb325f829f856230ce03bde07b97f35a68b5 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 26 Aug 2022 22:12:45 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5729 --- 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 9fa2405d8..9c4118fa9 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 && protyle.options.mode === "wysiwyg") { + if (scrollObj && protyle.options.mode !== "preview") { restoreScroll(protyle, scrollObj); } const loadingElement = protyle.element.querySelector(".fn__loading");