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/pull/16290

Vanessa188fa4e669e9
diff --git a/app/src/mobile/editor.ts b/app/src/mobile/editor.ts
index d1cf235d89..f71f5f6a9d 100644
--- a/app/src/mobile/editor.ts
+++ b/app/src/mobile/editor.ts
@@ -41,9 +41,10 @@ export const openMobileFileById = (app: App, id: string, action: TProtyleAction[
});
if (blockElement) {
pushBack();
- scrollCenter(window.siyuan.mobile.editor.protyle, blockElement, "start");
if (action.includes(Constants.CB_GET_HL)) {
- highlightById(window.siyuan.mobile.editor.protyle, id, "start");
+ highlightById(window.siyuan.mobile.editor.protyle, id);
+ } else {
+ scrollCenter(window.siyuan.mobile.editor.protyle, blockElement);
}
closePanel();
// 更新文档浏览时间