This commit is contained in:
parent
b94a28eca0
commit
4f62adddc7
1 changed files with 7 additions and 2 deletions
|
@ -44,8 +44,13 @@ export const initBlockPopover = (app: App) => {
|
|||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
} else if (!aElement && !hasClosestByAttribute(event.target, "id", "tooltip", true)) {
|
||||
hideTooltip();
|
||||
} else if (!aElement) {
|
||||
const tipElement = hasClosestByAttribute(event.target, "id", "tooltip", true)
|
||||
if (!tipElement || (
|
||||
tipElement && (tipElement.clientHeight >= tipElement.scrollHeight && tipElement.clientWidth >= tipElement.scrollWidth)
|
||||
)) {
|
||||
hideTooltip();
|
||||
}
|
||||
}
|
||||
if (window.siyuan.config.editor.floatWindowMode === 1 || window.siyuan.shiftIsPressed) {
|
||||
clearTimeout(timeoutHide);
|
||||
|
|
Loading…
Add table
Reference in a new issue