mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-12 07:32:34 +01:00
🚨
This commit is contained in:
parent
9a1c02e7e4
commit
8c36764686
17 changed files with 37 additions and 38 deletions
|
|
@ -139,7 +139,7 @@ export const initBlockPopover = (app: App) => {
|
|||
|
||||
const hidePopover = (event: MouseEvent & { path: HTMLElement[] }) => {
|
||||
// pad 端点击后 event.target 不会更新。
|
||||
const target = isTouchDevice() ? document.elementFromPoint(event.clientX, event.clientY) : event.target as HTMLElement
|
||||
const target = isTouchDevice() ? document.elementFromPoint(event.clientX, event.clientY) : event.target as HTMLElement;
|
||||
if (!target) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue