Vanessa 2025-07-14 18:03:03 +08:00
parent 7e885478ed
commit dcc0539e4b
4 changed files with 7 additions and 54 deletions

View file

@ -16,7 +16,10 @@ export const initBlockPopover = (app: App) => {
let timeoutHide: number;
// 编辑器内容块引用/backlinks/tag/bookmark/套娃中使用
document.addEventListener("mouseover", (event: MouseEvent & { target: HTMLElement, path: HTMLElement[] }) => {
if (!window.siyuan.config || !window.siyuan.menus) {
if (!window.siyuan.config || !window.siyuan.menus ||
// 拖拽时禁止
window.siyuan.dragElement || document.onmousemove) {
hideTooltip();
return;
}
const aElement = hasClosestByAttribute(event.target, "data-type", "a", true) ||