W3C home > Mailing lists > Public > public-pointer-events@w3.org > April to June 2017

[pointerevents] Enable direct pen and touch to have different touch-action behavior

From: Rick Byers via GitHub <sysbot+gh@w3.org>
Date: Fri, 05 May 2017 18:23:53 +0000
To: public-pointer-events@w3.org
Message-ID: <issues.opened-226653717-1494008632-sysbot+gh@w3.org>
RByers has just created a new issue for https://github.com/w3c/pointerevents:

== Enable direct pen and touch to have different touch-action behavior ==
Today A stylus in Chrome Android behaves as a direct manipulation input device (with the implications on touch-action discussed in #202).  This works well in practice except for one special case:

In some situations like note taking applications, you might want the pen to draw by default, while still allowing a finger to scroll.  That's not possible to express with `touch-action` today.

I propose we address this by defining a new `pen-action` property that is defined to apply ONLY to "direct manipulation pen devices", with (for now) only two possible values:

- `auto`: use the value of `touch-action`.  I believe this must be the default for web compat reasons (again see #202).
- `none`: disable all pen-based panning and zooming, just send events.

For implementation (and specification) complexity reasons I'd prefer to avoid adding other properties like `pan-x` etc.  I think from a UX perspective you're always going to want the pen to behave either identically to the finger, or to draw.

@ChumpChief and @atanassov have told me they're interested in exploring this on Edge.

@NavidZ @mustaqahmed @patrickhlauke WDYT?


Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/203 using your GitHub account
Received on Friday, 5 May 2017 18:24:00 UTC

This archive was generated by hypermail 2.3.1 : Friday, 5 May 2017 18:24:00 UTC