Is there a way to detect mouse events (hover, click, ...) on elements that are behind other HTML elements but not within the same DOM path (i.e. events do not bubble up to the element)?
A quick example to clarify what I mean: http://jsfiddle.net/xeJyg/1/
At the moment I don't see other option except for registering the event handler on the first common parent (in the example above that would be <BODY>
) and check myself if the event happened above the element in question. The problem is that with many elements this will probably become very inefficient.
In the long turn I try to catch mouse events for markers on multiple OpenLayer layers, which is not supported out of the box (events work only for the top layer).