- From: François REMY <francois.remy.dev@outlook.com>
- Date: Tue, 12 Feb 2013 15:01:19 +0100
- To: Rick Byers <rbyers@google.com>, Pointer Events WG <public-pointer-events@w3.org>
> if (e.isPointerType('depth-cam')) {
> ... light up additional 3-d features
> } else if (e.isPointerType('touch') {
> ... definitely a non-depth-cam touch device
> }
>
> Since we probably only care about JavaScript, it's simpler and I think
> just as powerful to define a set of boolean read-only properties on the
> event, eg. PointerEvent.isMouse, PointerEvent.isTouch, etc.
I agree, a set of boolean properties would be nice. It allows for pointer types that inherit from older ones.
Received on Tuesday, 12 February 2013 14:01:50 UTC