Re: [pointerevents] Touch/Trackpad finger position

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