dragify: use only the drag event’s target and ancestors instead of scanning for elements below the pointer (#1345)
This commit is contained in:
parent
8a29c9c458
commit
f02e1473b3
1 changed files with 0 additions and 4 deletions
|
|
@ -46,10 +46,6 @@ function collectEventElements(event: DragEvent): HTMLElement[] {
|
|||
add(event.target);
|
||||
for (const entry of event.composedPath?.() ?? []) add(entry);
|
||||
|
||||
if (typeof document !== "undefined" && event.clientX != null && event.clientY != null) {
|
||||
for (const element of document.elementsFromPoint?.(event.clientX, event.clientY) ?? []) add(element);
|
||||
}
|
||||
|
||||
return elements;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue