Re: Object identity

On 04/26/2011 08:39 PM, Matt Brubeck wrote:
> Should the Touch Events standard specify whether certain operations
> return the same object?

Yes.


>
>
> Example 1: Should changedTouches and targetTouches refer to the same
> objects as the "touches" attribute for the same event?

If they have the same identifier, they should be, IMO, the same objects.

>
> Example 2: Should different touch events refer to the same objects?

IMO yes, but there was that comment[1] that for some reason
Webkit or Apple might want to change that behavior. I wonder why.

-Olli


[1] http://www.quirksmode.org/blog/archives/2010/02/persistent_touc.html

Received on Thursday, 5 May 2011 13:12:09 UTC