Browse Source

:bug: fix https://github.com/siyuan-note/siyuan/issues/5711

Vanessa 2 years ago
parent
commit
b8af2e0581
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/protyle/util/onGet.ts

+ 1 - 1
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");