aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utils.ts')
-rw-r--r--src/Utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index 852a00406..f160df6f7 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -592,7 +592,7 @@ export function lightOrDark(color: any) {
}
}
-export function isTarget(x: number, y: number, target: HTMLDivElement | null) {
+export function hasDescendantTarget(x: number, y: number, target: HTMLDivElement | null) {
let entered = false;
for (let child = document.elementFromPoint(x, y); !entered && child; child = child.parentElement) {
entered = entered || child === target;