Reputation: 2248
I have several SVG elements in a web page and I want to nest them. The problem I'm having is that when I do this using:
top = Snap("#workspace");
inner = Snap("#child");
top.add(inner);
Then inner
does not respond to events, i.e. inner.click(function....)
or inner.drag()
don't do what's expected. Here's a JSFiddle. The dots
object is not dragable, while block
is.
Upvotes: 0
Views: 151