From b74fa37385c147de772f689b003bd3d46eab912e Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 27 Apr 2026 13:06:56 -0300 Subject: client: hoverable-tooltip: avoid elementFromPoint for hit detection --- src/static/js/client-util.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/static/js/client-util.js') 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; -- cgit 1.3.0-6-gf8a5