Hi, Bruno- You may want to look at my little drag-and-drop example for inspiration. It works according to the principle I suggested before:
http://svg-whiz.com/svg/DragAndDrop.svg Regards- Doug [EMAIL PROTECTED] www.vectoreal.com ...for scalable solutions. Bruno wrote: | | Thanks for your answer. | | Your problem is common, though your diagnosis is probably | not quite right. | If you are putting the mousemove event on the target element | itself, then | you are losing the mousemove event when you exit the target | element's area. | ***Yes you're right, the g is sometimes not redrawn before my | mouse pointer exits it. | But as you have understood my g element is composed of two | parts : a graphical one (use element) and a textual one (text | element). When my mouse pointer is on the textual one it's | working (I can't drag my g element as fast as I want) but on | the graphical one , not... why? | **** | | | | | | Instead, put it on the document root, and have a background | rectangle that | covers the whole viewport. That way, the mousemove events will still | register even if you move too fast for the target element to | follow, and the | element will catch up when you slow down. | *** | I'm not sure : If I remove the mousemove from the target | element, how can I know after on which g element was my | mousepointer when the mousemove event was triggered... ? | ***** | | Bruno ------------------------ Yahoo! Groups Sponsor --------------------~--> Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- 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/ <*> 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/