W3C home > Mailing lists > Public > public-webapi@w3.org > July 2006

Re: Mouse Capture APIs

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 13 Jul 2006 11:55:02 +1000
To: public-webapi@w3.org
Message-ID: <20060713015502.GA13101@port.mcc.id.au>

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

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:21 UTC