Re: [pointerevents] Spec implies mice can't support pressure

On 21/01/2016 17:58, Ted Dinklocker wrote:
>Assuming that the pressure characteristics of a "force touch"
> are different between an iPhone and a Mac with a pressure sensitive
> touchpad, a web developer would have to have detection code and react
> differently based on the HW platform.

On iPhone, there's the force attribute on touch events. On Mac, the same 
attribute is added (in a non-standard way, of course) to mouse events. 
So the attribute itself is the same, just on different event types 
(which would be irrelevant for PE as our model encompasses both).

Do you mean the exact value of pressure at which a touch becomes a force 
touch? The force/pressure threshold? Wonder if this could/should be 
defined simply as a property, like maxTouchPoints, but for 
forceTouchPressureThreshold or similar?

(Btw, just to avoid confusion, I'm assuming you mean we should consider 
these sorts of events 

> I think that would stink - a
> web dev should be able to just have code to handle a "force touch"
> and get a consistent, interoperable experience across any OS and HW
> platform combination that supports force touch capabilities.
> That being said, I can also imagine scenarios where a web dev would
> want to control the haptic feedback aspects of force touch - at least
> the ability to toggle it on and off.

I don't think the actual haptic feedback part is currently controllable 
(again just looking at the Apple documentation for force touch). Also 
wonder if this should be in scope for PE itself, rather than something 
like the vibrationAPI ?

> I do not have any data to indicate that web developers are clamoring
> for this and clearly anything that we were to specify would likely
> only work on non-Safari browsers, but it is interesting to consider
> nonetheless.

Patrick H. Lauke
Senior Accessibility Consultant
The Paciello Group (UK office)
This message is intended to be confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, please delete this message from your system and
notify us immediately. Any disclosure, copying, distribution or action
taken or omitted to be taken by an unintended recipient in reliance on
this message is prohibited and may be unlawful.

Received on Thursday, 21 January 2016 20:24:56 UTC