Re: Thoughts on Gestures & pointerList

On Sat, Apr 13, 2013 at 6:34 AM, François REMY <
francois.remy.dev@outlook.com> wrote:

> Hi,
>
> I saw mentioned at some point that it was considered for v2 that
> a ‘pointerList’ property could be added to pointer events.
>
> My take on the question is that it is probably a bad idea and should be
> avoided if possible. The reason is that pointer events are really meant to
> work on a per-pointer basis, and if you need to access the state of
> multiple pointers when performing an action, using an abstraction seems the
> best way to me.
>
> So, if some pointerList property had to be defined, I would prefer the
> property to be defined on the gesture objects instead (the positive point
> is that the position of pointers should only be kept in memory if they are
> actually part of a gesture, and it makes sure people use the good technique
> to handle gestures instead of manually fiddling with the per-pointer
> events).
>
> However, I’m wondering if someone has a good reason why we would want
> pointerList to be accessible during all the single-pointer events.
>

I'd personally rather see a method not tied to any event for getting a list
of all active pointers.

Received on Sunday, 14 April 2013 14:29:35 UTC