Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/16159

Vanessade53da0f2795
diff --git a/app/src/util/backForward.ts b/app/src/util/backForward.ts
index c2e9cd18db..5940f0f376 100644
--- a/app/src/util/backForward.ts
+++ b/app/src/util/backForward.ts
@@ -57,9 +57,10 @@ const focusStack = async (app: App, stack: IBackStack) => {
const editor = new Editor({
app: app,
tab,
- blockId: stack.zoomId || stack.protyle.block.rootID,
+ blockId: stack.zoomId || stack.id || stack.protyle.block.rootID,
rootId: stack.protyle.block.rootID,
- action: stack.zoomId ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL, Constants.CB_GET_UNUNDO] : [Constants.CB_GET_FOCUS, Constants.CB_GET_UNUNDO]
+ action: stack.zoomId ? [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL, Constants.CB_GET_ALL, Constants.CB_GET_UNUNDO] :
+ [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL, Constants.CB_GET_UNUNDO]
});
tab.addModel(editor);
}