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