I have 2 HTML elements that sit in the exact same position(same x,y values & same width & height). They also have the same z-index.
Both listen to left click events but because one sits over the other element, only one element ever receives a left click event. I use ele.addEventListener("mousedown", touchStart, false); to register/detect left clicks on the elements.
Is there a way to make sure that both elements receive the left click event/message even if they both sit in the same position?
Maybe if I change their z-index to different indexes then they will both receive the message?
<div>(also at the same position) and then handle clicks on the container?