Touch/Trackpad finger position

# Felipe Nascimento de Moura (7 months ago)

If I'm being too crazy here, please let me know!

What would it require for us to have an API to get the exact position of fingers/touches from the trackpad? (even it not pressed)

For example, let's say someone wants to write a WebApp in which you could sign something, or simply use a (good) handwriting feature instead of pressing/clicking.

This is a feature that is supported for native apps... I wonder why it shouldn't be supported for the web :)

[ ]s

--

Felipe N. Moura Web Developer, Google Developer Expert developers.google.com/experts/people/felipe-moura, Founder of

BrazilJS braziljs.org and Nasc nasc.io.

Website: felipenmoura.com / nasc.io Twitter: @felipenmoura twitter.com/felipenmoura

Facebook: fb.com/felipenmoura LinkedIn: goo.gl/qGmq

Changing the world is the least I expect from myself!

# Eli Perelman (7 months ago)

The ECMAScript language deals with semantics around the specific programming language, while native interactions are supplied by the host environment, e.g. Node.js and the browser. This is why interactions like window and document events are defined by W3C and friends, and strictly-language items are handled by ES.

You'll probably want something like Touch Events, defined by the host environment:

developer.mozilla.org/en-US/docs/Web/API/Touch_events

# Isiah Meadows (7 months ago)

Also, for future reference, these kinds of feature requests belong in the WHATWG's mailing lists, not here.

# /#!/JoePea (7 months ago)

The best place to ask about this is probably somewhere here: github.com/whatwg. I'm not sure which repo this topic would be in, but you can kindly ask about which repo to post in once you've opened an issue in the repo you think is most related. My guess would be github.com/whatwg/dom.

# Felipe Nascimento de Moura (7 months ago)

Very interesting. Thanks :) It was so close, Isiah! The problem with the current API is that you can "jump" from one place to another.

Let's say I draw an "A" in the left side of my trackpad, then I draw a "B" in the right side of the trackpad. On the screen, they will overlap, with both letters in the same place.

I will ask them there, Joe.

Thanks a lot, folks :)