Skip to content

Instantly share code, notes, and snippets.

View growthboot's full-sized avatar
🥂
Launch Time

Growthboot growthboot

🥂
Launch Time
View GitHub Profile
@iddan
iddan / elementsfrompoint.js
Last active June 11, 2021 07:10
document.elementsFromPoint Polyfill
'use strict';
if (!document.elementsFromPoint) {
document.elementsFromPoint = elementsFromPoint;
}
function elementsFromPoint(x, y) {
var parents = [];
var parent = void 0;
do {