Hi HardC0d3,

hardc0d3r <[EMAIL PROTECTED]> wrote on 05/03/2007 07:13:44 AM:

> do i have to add listeners to all the
> shapes/objects in the svg in order to drag or there is a more efficient 
way
> of doing this? let's say that there are hundreds of lines that can be
> dragged, will it be ok to add listeners to all those lines?

   If you put all the elements you want to listen to in a group
you can register one listener on the group and it will be notified for
all of the children.  You might want to look at the DOM 2 Events 
specification, in particular the section on Event capture and Bubbling:

        http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/
 
http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-flow


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to