From 7b6a28911fc51c322e83d394d6257191525b7808 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Sun, 13 Apr 2025 16:53:10 +0800 Subject: [PATCH] :bug: Virtual reference cannot jump on mobile Fix https://github.com/siyuan-note/siyuan/issues/14565 (#14566) --- app/src/protyle/wysiwyg/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 9c87a90b7..553b7cc81 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -2316,8 +2316,8 @@ export class WYSIWYG { anchor: virtualRefElement.textContent, excludeIDs: [blockElement.getAttribute("data-node-id")] }, (response) => { - checkFold(response.data[0], (zoomIn) => { - openMobileFileById(protyle.app, response.data[0], zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]); + checkFold(response.data.refDefs[0].refID, (zoomIn) => { + openMobileFileById(protyle.app, response.data.refDefs[0].refID, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]); activeBlur(); hideKeyboardToolbar(); });