Explorar o código

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

Vanessa %!s(int64=2) %!d(string=hai) anos
pai
achega
b8af2e0581
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,
             unScroll: (scrollObj && scrollObj.focusId) ? true : false,
         }, protyle);
         }, protyle);
 
 
-        if (scrollObj) {
+        if (scrollObj && protyle.options.mode === "wysiwyg") {
             restoreScroll(protyle, scrollObj);
             restoreScroll(protyle, scrollObj);
         }
         }
         const loadingElement = protyle.element.querySelector(".fn__loading");
         const loadingElement = protyle.element.querySelector(".fn__loading");