From 39220af36cf1866dc4c64b28b103ce79f6827f11 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 22 Mar 2024 23:09:12 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/10692 --- app/src/util/backForward.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/util/backForward.ts b/app/src/util/backForward.ts index c84fd9cd1..7a58abfe6 100644 --- a/app/src/util/backForward.ts +++ b/app/src/util/backForward.ts @@ -163,7 +163,6 @@ const focusStack = async (app: App, stack: IBackStack) => { onGet({ data: getResponse, protyle: stack.protyle, - action: [Constants.CB_GET_FOCUS], afterCB() { Array.from(stack.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${stack.id}"]`)).find((item: HTMLElement) => { if (!hasClosestByAttribute(item, "data-type", "NodeBlockQueryEmbed")) { @@ -180,6 +179,7 @@ const focusStack = async (app: App, stack: IBackStack) => { } }); focusByOffset(getContenteditableElement(blockElement), stack.position.start, stack.position.end); + scrollCenter(stack.protyle, blockElement, true); } }); });