Re: Mouse Capture APIs

Antoine Quint:
> I took a look at the archives and did not see any discussion so far  
> about adding mouse capture capabilities. In my experience of  
> designing UI widgets in SVG, mouse capture is absolutely essential in  
> order to provide to the user an experience similar to that he/she  
> would be used to in "traditional" native platform applications. In  
> the Adobe SVG Viewer, a captureMouse() method allows, following a  
> mousedown event, to hijack all mouse events in the system and  
> redirect them to a single event handler, making it so that any other  
> mouse event handlers registered on other elements do not get  
> triggered, etc. Capture is automatically released once the user  
> releases the mouse button ("mouseup"), wherever it is, not just on  
> top of the main browser window. While I don't have much experience  
> with it, I've been told that IE has similar capabilities with its  
> setCapture() method.
> 
> Both these methods are proprietary of course, and it would be useful  
> to have a standard way to express this capability.

The startMouseCapture/stopMouseCapture methods from the SVG 1.2 Full
draft work well, too, in my experience of creating some widgets with
SVG.

-- 
Cameron McCormack, http://mcc.id.au/
 xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au

Received on Thursday, 13 July 2006 01:55:46 UTC