- Install via npm:
npm install pointer-events
- Install via Bower:
bower install pointer-events
Small little script for simulating
pointer-events: none in older browsers – namely, Internet Explorer.
Please see the
You can use
PointerEvents in very much the same way you use the CSS property. Simply specify
data-pointer-events="none" on the element you want to have no pointer events.
<div class="foreground" data-pointer-events="none"> Foreground element. </div>
- Common events are relayed to the underlying node;
- Properties except
styleare copied across;
cursoris copied across;
- Adds and removes
hoverclass for use instead of pseudo-class
document.elementFromPoint to determine what's immediately below the
Please feel free to submit new issues.
However if you want to make your own changes and to submit them via a pull request, then that would be more than appreciated!