mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 13:28:48 +01:00
This commit is contained in:
parent
ffb92877a8
commit
de451d5512
2 changed files with 2 additions and 2 deletions
|
|
@ -382,7 +382,7 @@ const switchEditor = (editor: Editor, options: IOpenFileOptions, allModels: IMod
|
|||
} else {
|
||||
// 点击大纲产生滚动时会动态加载内容,最终导致定位不准确
|
||||
preventScroll(editor.editor.protyle);
|
||||
editor.editor.protyle.observerLoad.disconnect();
|
||||
editor.editor.protyle.observerLoad?.disconnect();
|
||||
if (options.action?.includes(Constants.CB_GET_HL)) {
|
||||
highlightById(editor.editor.protyle, options.id, true);
|
||||
} else if (options.action?.includes(Constants.CB_GET_FOCUS)) {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ const forwardStack: IBackStack[] = [];
|
|||
const focusStack = (backStack: IBackStack) => {
|
||||
const protyle = getCurrentEditor().protyle;
|
||||
// 前进后快速后退会导致滚动错位 https://ld246.com/article/1734018624070
|
||||
protyle.observerLoad.disconnect();
|
||||
protyle.observerLoad?.disconnect();
|
||||
|
||||
window.siyuan.storage[Constants.LOCAL_DOCINFO] = {
|
||||
id: backStack.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue