Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RaphaelJS: Creating click-through elements?

Tags:

svg

raphael

I need to overlay a label on top of multiple clickable elements. I want to be able to click on an element through the label on top of it.

Is this possible? If so, how would I accomplish this?

like image 945
neezer Avatar asked Sep 01 '10 17:09

neezer


1 Answers

In Firefox, Opera and Chrome/Safari you could use pointer-events: none in the style attribute. I'm not sure how that will work in IE where it's VML rather than SVG, you may have to figure out how to adapt Forwarding Mouse Events Through Layers to SVG content.

like image 84
robertc Avatar answered Oct 18 '22 12:10

robertc