mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 04:18:48 +01:00
This commit is contained in:
parent
015bb3bc62
commit
bbff321019
1 changed files with 6 additions and 1 deletions
|
|
@ -840,7 +840,12 @@ export const zoomOut = (options: {
|
|||
while (showElement.getBoundingClientRect().height === 0) {
|
||||
showElement = showElement.parentElement;
|
||||
}
|
||||
showElement = getFirstBlock(showElement);
|
||||
if (showElement.classList.contains("protyle-wysiwyg")) {
|
||||
// 闪卡退出聚焦元素被隐藏 https://github.com/siyuan-note/siyuan/issues/10058#issuecomment-2029524211
|
||||
showElement = focusElement.previousElementSibling || focusElement.nextElementSibling;
|
||||
} else {
|
||||
showElement = getFirstBlock(showElement);
|
||||
}
|
||||
focusBlock(showElement);
|
||||
showElement.scrollIntoView();
|
||||
} else if (options.id === options.protyle.block.rootID) { // 聚焦返回后,该块是动态加载的,但是没加载出来
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue