Pass mouse events through absolutely-positioned element

pointer-events: none;

Is a CSS property that makes events “pass through” the HTML-element to which the property is applied. It makes the event occur on the element “below”.

See for details: https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events

It is supported by almost all browsers, including IE11; global support was ~98.2% in 05/’21): http://caniuse.com/#feat=pointer-events (thanks to @s4y for providing the link in the comments).

Leave a Comment