Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Initialize touchList in Chrome #78

Open
Henne2806 opened this issue Dec 8, 2016 · 4 comments
Open

Initialize touchList in Chrome #78

Henne2806 opened this issue Dec 8, 2016 · 4 comments

Comments

@Henne2806
Copy link

Henne2806 commented Dec 8, 2016

Is there a chance to initialize a touchList in Chrome?
new TouchList() doen't work. I've got an error: Illegal Constructor.
document.createTouchList() is also not working. There i've got an Uncaught ReferenceError...

I am using Chrome v.54

@cynthia
Copy link
Member

cynthia commented Dec 10, 2016

Is this limited to Chrome? In that case the report might be better suited for https://bugs.chromium.org/hosting/ .

@patrickhlauke
Copy link
Member

document.createTouchList() works, but only if Chrome is currently running on a touchscreen device/has touch events enabled. new TouchList() throws as illegal constructor there too, though.

@RByers is there any change/clarification needed in the spec for this, do you think?

@patrickhlauke
Copy link
Member

possibly related to whatever we decide in #54

@DSMann
Copy link

DSMann commented Feb 15, 2018

Chrome creates a TouchList from an array when passed in to a TouchEvent via the TouchEventInit dictionary for touches, changeTouches, and targetTouches. At least it does on v63.

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

No branches or pull requests

4 participants