W3C home > Mailing lists > Public > www-svg@w3.org > October 2002

Moving and shaking

From: Řyvind Bollingmo <bolle@graphics.no>
Date: Wed, 2 Oct 2002 21:58:07 +0200
Message-ID: <5D9DABC51F40FF45A7B358E63286864F2D88C6@venus>
To: <www-svg@w3.org>
 

I've got an image with a rectangular clipping path. When I click and hold down the mouse button I can drag the picture around (using getClientX/Y and then setting new coordinates). When the mouse reaches a clipping-path (rectangle) boundary I cannot drag the element further.

 

What I want to do on "mousedown" is to make a new clipping-path like a circle (or any shape for that matter) in front of everthing else (to avoid bumping into any other objects) which is bigger than the rectangle, and then 'make it active' so that I can move the mouse inside the circle boundaries instead of the rectangle boundaries.  When I release the mouse the circle is to be deleted (or sent to the back) and the original object is to be made 'active'.

 

Is there a way to 'change focus' from the rectangle to the circle on "onmousedown"?

 

 

(hope anyone understood this, kind of hard explaining :-) )

 

 

Řyvind Bollingmo / Pinnacle Gfx

 
Received on Wednesday, 2 October 2002 15:58:41 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:23 GMT