UNPKG

@spectrum-web-components/shared

Version:

The `@spectrum-web-components/shared` package provides essential base classes, mixins, and utilities that support developing Spectrum Web Components. This package contains foundational tools for focus management, slot observation, accessibility enhancemen

14 lines (13 loc) 414 B
"use strict"; export const getDeepElementFromPoint = (x, y) => { let target = document.elementFromPoint(x, y); while (target == null ? void 0 : target.shadowRoot) { const innerTarget = target.shadowRoot.elementFromPoint(x, y); if (!innerTarget || innerTarget === target) { break; } target = innerTarget; } return target; }; //# sourceMappingURL=get-deep-element-from-point.dev.js.map