>From my recent digging, when you select an element to be dragged (DragTarget), try:
// move this element to the "top" of the display, so it is (almost) // always over other elements DragTarget.parentNode.appendChild( DragTarget ); AND // turn off all pointer events to the dragged element, this does 2 things: // 1) allows us to drag text elements without selecting the text (if it is text) // 2) allows us to find out where the dragged element is dropped DragTarget.setAttributeNS(null, 'pointer-events', 'none'); Remember to turn the pointer event back on after the drop. Stephen --- In [email protected], "simonshutter" <[EMAIL PROTECTED]> wrote: > > David and Andre, > > Thanks for the feedback. I'm still doing some testing but for > whatever reason I'm not getting the results I was hoping for so now > looking at coding the events differently in my file. > > Simon > > > --- In [email protected], "ddailey" <ddailey@> wrote: > > > > Simon, I haven't looked at your code to see what might be causing > the trouble, but here is something that allows the dragging around of > several objects of differing types, including groups with rect and > text, that is working in O, F and I. > > > > One thing to be aware of is the difference between evt.target and > evt.currentTarget. > > > > http://srufaculty.sru.edu/david.dailey/svg/drag.svg > > > > Hope it is helpful. > > > > David > > > > ----- Original Message ----- > > From: simonshutter > > To: [email protected] > > Sent: Monday, March 12, 2007 4:14 PM > > Subject: [svg-developers] Event model differences between browsers > > > > > > Hi folks, > > > > I have an SVG doc which includes some paired SVG text and rect > > elements. My goal is for the user to click on a text element and, > as > > the mouse is moved up or down, a clone of the corresponding rect > > element will move with it. > > > > see: http://www.schemax.com/test/host.htm > > > > What I am currently seeing is three different behaviours > exhibited by > > IE7/ASV3, FF2 and Op9. > > > > IE7/ASV3 - appears to work as intended > > > > FF2 - works as intended except if the pointer enters another text > > element (thereby leaving the parent) the parent's mouse out event > > fires and the clone is dropped. > > > > Op9 - as soon as the pointer leaves the text element the clone is > > dropped (although the parent event does not appear to fire) > > > > Can anyone suggest a better event implementation pls? > > > > Tx, Simon > > > > > > > > > > > > [Non-text portions of this message have been removed] > > > ----- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/

