- From: Matt Brubeck <mbrubeck@mozilla.com>
- Date: Tue, 25 Jan 2011 07:46:16 -0800
- 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 UTC