W3C home > Mailing lists > Public > public-webevents@w3.org > January to March 2011

Re: First Draft, Touch Interface Spec

From: Matt Brubeck <mbrubeck@mozilla.com>
Date: Tue, 25 Jan 2011 07:46:16 -0800
Message-ID: <4D3EF048.5080201@mozilla.com>
To: timeless <timeless@gmail.com>
CC: "public-webevents@w3.org" <public-webevents@w3.org>
On 01/25/2011 07:24 AM, timeless wrote:
> interface TouchPoint {
>      readonly attribute integer     identifier;
> identifier of type integer, readonly
>      an identification number unique to each touch point
>
> this seems problematic :) it might take a while but i bet someone
> could overflow it.

In WebKit browsers, these identifiers are re-used after a touch point is 
removed and a new one is added.  For example, if you have two touch 
points, they may have identifiers [1,2].  When you remove the first, you 
have [2].  If you add one back, you may then have [2,1].

So these need only to be unique among touch points that exist 
simultaneously.
Received on Tuesday, 25 January 2011 15:47:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 25 January 2011 15:47:21 GMT