Pārlūkot izejas kodu

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

Vanessa 3 gadi atpakaļ
vecāks
revīzija
b8af2e0581
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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");