This commit is contained in:
Vanessa 2024-07-06 09:57:00 +08:00
parent 9a1c02e7e4
commit 8c36764686
17 changed files with 37 additions and 38 deletions

View file

@ -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;
}