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

Re: [pointerevents] Touch/Trackpad finger position

From: Felipe Nascimento de Moura via GitHub <sysbot+gh@w3.org>
Date: Thu, 09 Nov 2017 03:04:08 +0000
To: public-pointer-events@w3.org
Message-ID: <issue_comment.created-343033524-1510196647-sysbot+gh@w3.org>
Very important point.
I will try and find out more on those native APIs, but as far as I can tell, we would need:

- **Track proportion:** How squared or rectangular is the trackpad
- **List of touches:** once it is not a click or mousedown, but the equivalent of a "mousemove"

Each touch would have:

- **x:** A spacial reference for x, in percentage
- **y:** A spacial reference for y, in percentage
- **pressed:** A boolean saying if that touch is currently pressed or not

Also interesting to have, but I'm not sure OSs offer support for this, would be:

- **precision:** How wide is the touch...let's say the user is passing their whole thumb...or using a touch pen

If we always get the % information for the position of a touch, and we have the trackpad proportion, we can infer the touch position on the screen.

This will not only allow developers to create things that nowadays still require native app, as it will help our tools to emulate touch screen and gestures while developing.

GitHub Notification of comment by felipenmoura
Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/228#issuecomment-343033524 using your GitHub account
Received on Thursday, 9 November 2017 03:04:31 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 9 November 2017 03:04:31 UTC