🐛 Virtual reference cannot jump on mobile Fix https://github.com/siyuan-note/siyuan/issues/14565 (#14566)

This commit is contained in:
Jeffrey Chen 2025-04-13 16:53:10 +08:00 committed by GitHub
parent edfee5c676
commit 7b6a28911f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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