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 Jérôme Tricand de la Goutte Société Logatique 50 rue Marcel Dassault 92100 Boulogne-Billancourt 01 46 21 59 59 Burkhard Stollenwerk wrote: >Thanks Jéróme, > >can you give me a example about this? > >Burkhard >----- Original Message ----- >From: "Jérôme Tricand de la Goutte" <[EMAIL PROTECTED]> >To: <svg-developers@yahoogroups.com> >Sent: Thursday, February 03, 2005 10:31 AM >Subject: Re: [svg-developers] Drag and Drop for groups > > > > >>Hi Burkhard >> >>Just put your mouse events declaration on the group and not on the rect or >> >> >text. > > >>Then, use evt.currentTarget to get the group and apply translation to the >> >> >group. > > >>Hope it helps >> >>Jérôme Tricand de la Goutte >> >>Société Logatique >>50 rue Marcel Dassault >>92100 Boulogne-Billancourt >> >>01 46 21 59 59 >> >> >> >>Burkhard Stollenwerk wrote: >> >> >> >>>Hello, >>> >>>how could I move a group of elements like >>> >>><g> >>><rect.../> >>><text...>test</text> >>></g> >>> >>>and an other problem is the slowly accorat moveing, if I was out of >>> >>> >element. > > >>>Any solution , please told me >>> >>>friendly greeting >>> >>>Burkhard Stollenwerk >>> >>> >>> >>>----- >>>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 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 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 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/