diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-04-27 13:06:56 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-04-27 13:06:56 -0300 |
| commit | b74fa37385c147de772f689b003bd3d46eab912e (patch) | |
| tree | 33450fb78250436d387996407132df528dd666c4 /src/static/js/client-util.js | |
| parent | b4dce2cbdfc295402d29badfcc6b7f0db0e91493 (diff) | |
client: hoverable-tooltip: avoid elementFromPoint for hit detection
Diffstat (limited to 'src/static/js/client-util.js')
| -rw-r--r-- | src/static/js/client-util.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/static/js/client-util.js b/src/static/js/client-util.js index 0c113758..a6846714 100644 --- a/src/static/js/client-util.js +++ b/src/static/js/client-util.js @@ -73,14 +73,6 @@ export function decodeEntities(string) { return textarea.value; } -// Curry-style, so multiple points can more conveniently be tested at once. -export function pointIsOverAnyOf(elements) { - return (clientX, clientY) => { - const element = document.elementFromPoint(clientX, clientY); - return elements.some(el => el.contains(element)); - }; -} - export function getVisuallyContainingElement(child) { let parent = child.parentElement; |