W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2010

[whatwg] Event handlers - Pointer Devices

From: <dpenkler@gmail.com>
Date: Thu, 25 Feb 2010 22:37:14 +0000
Message-ID: <001636498defb162e20480746cad@google.com>
This is a timely call for interest.
Additionally I would like to sollicit thoughts on the ideal level of  
abstraction such event API's should provide.

Some random examples for illustration.

Low level: TouchDown(...) onTouchMove() onTouchUp() with each reporting and  
tracking pressure and position of multiple fingers so that "gesture  
recognition" can be done in the script

Mid Level: onTap(), onDoubleTap(), onLongTouch(), onDrag(),  
onPinch()....position but no pressure reported

High Level: onRotate(), onScroll(), onResize()....gesture reported

The complexity and number of problems to overcome to produce a clean API is  
much greater for higher levels of abstraction.

On a related note it would be useful for tablets and smartphones to also  
handle other sensors such as accelerometers.... onShake(),  
onOrientationChange()
I believe Palm has done some stuff to support this. At a lower level you  
can get raw accelerometer data too.

-dave


On Feb 25, 2010 10:00pm, Charles Pritchard <chuck at jumis.com> wrote:
> Hi All;



> I'd like to know if there's room or any work has been done to set aside a

> standard for an extended set of pointer-device events.



> With touch screens and touch sensitivity becoming quite main-stream,

> I'd like to see this popular functionality supported by the HTML 5  
> standard.



> We see, in the iPhone, an ontouchstart and ongesturestart, and company.

> Gesture is a nice way of saying multiple inputs, and it works well.





> While many people would like to wrap the ontouch events into onmouse

> events -- they do have some different semantics. And, I believe

> that ontouch would be a good place to add in pressure sensitivity indexes.



> So, I thought I'd solicit feedback here.



> I'd like a common API to support touch screens

> and pressure/angle sensitive touch devices.



> I believe that both Apple and Wacom have thrown their hats into the ring,  
> and we can easily

> integrate their achievements.





> -Charles







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100225/556ce0c6/attachment.htm>
Received on Thursday, 25 February 2010 14:37:14 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:21 UTC