Vanessa 2025-10-31 12:44:34 +08:00
parent 2e56d39ac3
commit de53da0f27

View file

@ -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);
}