mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
a9edf35b2c
commit
188fa4e669
1 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||
// 更新文档浏览时间
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue