Hi Michael,

"Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on 
10/27/2005 09:22:39 AM:

>      Not quite what I'm doing.  After I calculate the deltas between
> mouse moves, I add to the original translate values, I don't add new
> translate attributes.
>
> I am not adding translate values, I'm adding TO the existing translate
> value.  I had originally set the translate based on the delta from where
> the mouse was originally pressed to "now", but I got some really weird
> behavior where the element would "jump" back to its original position
> every other mouse event.

   Ahh, this is your bug, right now you are essentially killing every 
other
mouse move delta, going back to your earlier message I notice:

> > - I transform the coordinates in my MouseMove event by getting the
> >   client X/Y from the DOMMouseEvent, creating an SVGOMPoint, and
> >   inverting the matrix from the event.getTarget().getScreenCTM().

   This is the problem, the getScreenCTM for target will include the
'update' to the transform, which generally you don't want.  You
probably want to do something like:

        Node n = event.getTarget().getParentNode();
        SVGMatrix mat = ((SVGLocatable)n).getScreenCTM();

   I suspect this will fix all your problems (with either way of doing 
things).


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to