mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 05:28:07 +01:00
This commit is contained in:
parent
7e885478ed
commit
dcc0539e4b
4 changed files with 7 additions and 54 deletions
|
|
@ -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) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue