Thank you, I did figure it out, forgot to account for the original
translation when updating.  



-- In [email protected], "simonshutter" <[EMAIL PROTECTED]> wrote:
>
> Do you have an simple example file that reproduces the problem?  Have 
> you tried looking at the file more closely with a tool like Firefox 
> Firebug?  Using this tool you can look at the DOM as the events fire 
> and it often explains what is happening 'under the hood'.
> 
> Simon
> 
> --- In [email protected], "a30blows" <30blows@> wrote:
> >
> > I am wrestling with functions which provide mouse driven drag and 
> drop
> > of SVG elements with full support of zoom, pan and viewBox.
> > 
> > It's mostly working.  I can pick up anything and drag it just fine 
> to
> > its new location.
> > 
> > BUT, if I pick up the same object again to drag it, it "pops" back 
> to
> > its previous location to begin the new drag.
> > 
> > I think what is happening is the line in the drag function:
> > 
> > DragTarget.setAttributeNS(null, 'transform', 'translate(' + newX 
> + ','
> > + newY + ')');
> > 
> > is adding a translate xformation to the entity, but, when it is
> > dragged again, the translate attribute is overwritten upon the new
> > mouse movement, and the drag starts from its initial untranslated
> > state again.
> > 
> > How to make it stick?  Any help would be appreciated.
> >
>




-----
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/
 

Reply via email to