Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsmith01/elementsfrompoint-polyfill
https://github.com/jsmith01/elementsfrompoint-polyfill
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jsmith01/elementsfrompoint-polyfill
- Owner: JSmith01
- License: unlicense
- Created: 2018-09-20T12:46:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-20T12:50:52.000Z (about 6 years ago)
- Last Synced: 2024-04-24T20:13:54.187Z (7 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
document.elementsFromPoint polyfill
===================================This is a simple polyfill for `document.elementsFromPoint` that relies on `document.elementFromPoint` call (that should be supported by browser).
It solves the problem at least for Safari 11.0 that supports only latter.For documentation on `document.elementsFromPoint` please take a look on [MDN article](https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/elementsFromPoint).
This polyfill is based on following GitHub gist: https://gist.github.com/iddan/54d5d9e58311b0495a91bf06de661380
Polyfill can be imported as `require 'elementsfrompoint-polyfill';` or with ES6 syntax `import('elementsfrompoint-polyfill');`