mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
156168205f
commit
491fa58d99
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ const focusStack = async (app: App, stack: IBackStack) => {
|
||||||
stack.protyle.model.parent.parent.switchTab(stack.protyle.model.parent.headElement);
|
stack.protyle.model.parent.parent.switchTab(stack.protyle.model.parent.headElement);
|
||||||
}
|
}
|
||||||
focusByOffset(getContenteditableElement(blockElement), stack.position.start, stack.position.end);
|
focusByOffset(getContenteditableElement(blockElement), stack.position.start, stack.position.end);
|
||||||
scrollCenter(stack.protyle, blockElement, true);
|
scrollCenter(stack.protyle, blockElement);
|
||||||
getAllModels().outline.forEach(item => {
|
getAllModels().outline.forEach(item => {
|
||||||
if (item.blockId === stack.protyle.block.rootID) {
|
if (item.blockId === stack.protyle.block.rootID) {
|
||||||
item.setCurrent(blockElement);
|
item.setCurrent(blockElement);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue