diff options
author | bobzel <zzzman@gmail.com> | 2020-12-16 23:30:57 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-12-16 23:30:57 -0500 |
commit | f4f4cb6b3a639c3e1c0d291f1d290e80097cfa06 (patch) | |
tree | 6280a4c0a2853f021e6527dc90d28ab48369c953 /src/Utils.ts | |
parent | 953068d7f2653d0d219246c07c5183ca8ffce3ea (diff) |
fixed unbrushing docs
Diffstat (limited to 'src/Utils.ts')
-rw-r--r-- | src/Utils.ts | 2 |
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; |