How to trigger multiple mouse-click events on arbitrarily many HTML elements covering each other?
I know you can use pointer-events: none; to let your click pass through your elements, but what if I want to trigger the mouse-click event on an element AND the mouse-click event on arbitrarily many other elements beneath it?
A solution could be to track mouse move using :
Store coordinates to a global variable then check its position when your element is clicked. That would give something like :