Re: [svg-developers] Click through the transparent part of an SVG element
- On Thu, 27 Nov 2008 10:45:49 +0100, Vladimir Agafonkin <agafonkin@...> wrote:
> Hi guys!This bug has been fixed in the latest public Opera 10 snapshot:
> I'm implementing a mapping library (somehow similar to Google Maps)
> and have a very frustrating problem with SVG - if I have several
> independent SVG elements on an HTML page and one covers a part of the
> other, shapes in that part don't receive click events. It behaves like
> this in FF3 and Opera9 but surprisingly works fine in Safari 3.
> Here's a simple test case to demostrate what I mean:
> http://agafonkin.com/files/etc/svgbug.html (try clicking the red path)
> Because of this problem I was forced to reimplement vector
> functionality in my library so that all paths have one root SVG
> element, but calculating shared viewBox is very inconvenient, besides
> on high zoom levels this viewBox can become too big and it stops
> rendering completely after some point.
> I would appreciate any help on the matter. Thanks a lot in advance!
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed