W3C home > Mailing lists > Public > public-pointer-events@w3.org > January to March 2013

RE: pointerType extensibility

From: François REMY <francois.remy.dev@outlook.com>
Date: Tue, 12 Feb 2013 15:01:19 +0100
Message-ID: <DUB002-W1363F567D2C3E9EB49234EA5090@phx.gbl>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:17:04 GMT