I have two SVG rects, where one is logically on top of the other in terms of x and y position. Now, when you hover over the top rect, I want the rect underneath it to be the target of the event. But if I mousedown on the top rect, I want it to be the target.
This different functionality based on event type is what makes the css "pointer-event" property not useful to me.
How can I accomplish this?