J�r�me Tricand de la Goutte wrote: > hello Burkhard. > > I don't have too much time now, i'm sorry > The main issue for this problem is handling the mouse. > You must detect onmousedown event, memorize it and the object on which you've > clicked, then react to onmousemove by moving the object, until onmouseup is > detected. > > The onmousemove and onmouseup can be fired on the SVG document itself, but > onmousedown must be fired on the group only. > > I'll try to make code when I'va time
Well, usually I recommand to take a look at the good example given by Doug Schepers at http://svg-whiz.com/samples.html (DragAndDrop example). It handles correctly transformations (zoom and pan) and is quite robust. The sample apply to elements only, but it should be easy, given the hints provided by J�r�me, to apply it to groups. -- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- For servers mangling my From and Reply-To fields, -- please send private answers to PhiLho(a)GMX.net -- -- -- -- -- -- -- -- -- -- -- -- -- -- ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

