Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Length of changedTouches list during a touchstart event #34

Closed
AFBarstow opened this issue Oct 24, 2015 · 2 comments
Closed

Length of changedTouches list during a touchstart event #34

AFBarstow opened this issue Oct 24, 2015 · 2 comments

Comments

@AFBarstow
Copy link
Contributor

The spec says the following regarding changed changedTouches list and touchstart events:

[[
For the touchstart event this must be a list of the touch points that just became active with the current event.
]]

This implies changedTouches can have more than one touch point during touchstart but is that really the case? It seems like during a touchstart event, changedTouches will only have one touch point.

@RByers
Copy link
Contributor

RByers commented Oct 27, 2015

In chromium I believe we'll never put two new touches in the same touchstart (or touchend event) but this is really just due to the API design of the underlying platforms we run on (where each finger comes as a separate event) and our desire not to buffer start/end events at all. So I see no reason to require separate events (I could imagine doing a small performance optimization to try to merge these).

On iOS however, the underlying API design matches the model of touch events, and sure enough there I can see multiple changedTouches in a single touchstart or touchend event. Here's a test page.

@RByers RByers closed this as completed Oct 27, 2015
@AFBarstow
Copy link
Contributor Author

ok; thanks for checking @RByers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants