[whatwg] Event handlers - Pointer Devices

dpenkler at gmail.com dpenkler at gmail.com
Thu Feb 25 14:37:14 PST 2010

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(),  
I believe Palm has done some stuff to support this. At a lower level you  
can get raw accelerometer data too.


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-0002.htm>

More information about the whatwg mailing list