Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Vanessa6b34eb325f82
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts
index 9fa2405d88..9c4118fa94 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");