mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
This commit is contained in:
parent
009b781e2f
commit
90b8de3b10
@ -141,8 +141,10 @@ const setHTML = (options: { content: string, action?: string[] }, protyle: IProt
|
||||
if (!options.action.includes(Constants.CB_GET_UNUNDO)) {
|
||||
pushBack(protyle, undefined, focusElement);
|
||||
}
|
||||
focusElement.scrollIntoView();
|
||||
// 减少抖动 https://ld246.com/article/1654263598088
|
||||
setTimeout(() => {
|
||||
scrollCenter(protyle, focusElement, true);
|
||||
focusElement.scrollIntoView();
|
||||
}, Constants.TIMEOUT_BLOCKLOAD);
|
||||
} else {
|
||||
focusBlock(protyle.wysiwyg.element.firstElementChild);
|
||||
|
Loading…
Reference in New Issue
Block a user