> 
>       function Grab(evt)
>       {
>          // find out which element we moused down on
>          var targetElement = evt.target;
> 
>          // you cannot drag the background itself, so ignore any
> attempts to mouse down on it
>          if ( BackDrop != targetElement )
>          {
>             //set the item moused down on as the element to be 
dragged
>             DragTarget = targetElement;
> 
>             // move this element to the "top" of the display, so it 
is
> (almost)
>             //    always over other elements (exception: in this 
case,
> elements that are
>             //    "in the folder" (children of the folder group) 
with
> only maintain
>             //    hierarchy within that group
>             DragTarget.parentNode.appendChild( DragTarget );
> 
>             // turn off all pointer events to the dragged element,
> this does 2 things:
>             //    1) allows us to drag text elements without 
selecting
> the text
>             //    2) allows us to find out where the dragged element
> is dropped (see Drop)
>             DragTarget.setAttributeNS(null, 'pointer-events', 
'none');
> 
>             // we need to find the current position and translation 
of
> the grabbed element,
>             //    so that we only apply the differential between the
> current location
>             //    and the new location
>             var transMatrix = DragTarget.getCTM();
>             GetTrueCoords(evt);
>             GrabPoint.x = TrueCoords.x - Number(transMatrix.e);
>             GrabPoint.y = TrueCoords.y - Number(transMatrix.f);
>             SVGRoot.addEventListener("mouseover",Drag,false);
>             SVGRoot.addEventListener("mouseup",Drop,false);
> 
>          }
>       };
> 

Use "mousemove" instead of "mouseover". Mouseover is invoked when the 
mouse cursor enters a shape. The drag listener should be invoked 
whenever the mouse is moved, also when it moves inside a shape. With 
mousemove it should work.

Regards
  Frank


------------------------------------

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