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

Standardize initTouchEvent? #29

Closed
RByers opened this issue Aug 18, 2015 · 3 comments
Closed

Standardize initTouchEvent? #29

RByers opened this issue Aug 18, 2015 · 3 comments
Assignees

Comments

@RByers
Copy link
Contributor

RByers commented Aug 18, 2015

The WebEvents working group previously decided not to normatively specify initTouchEvent because there were differences in implementation and weird extra co-ordinate parameters that made no sense.

However, according to an httparchive search there is a non-trivial amount of usage of this API (1236 of the top 300k websites as of Aug 2014). For example: https://www.fieldandrurallife.com/ and http://www.arccjournals.com/. In both cases it looks like it's just being used as a form of touch feature detection.

However, Chrome UMA data indicates that initTouchEvent is virtually never called in practice on Chrome. I wonder why? We're tracking understanding/fixing initTouchEvent behavior in Chrome here

@RByers
Copy link
Contributor Author

RByers commented Nov 2, 2015

/cc @choniong

@RByers
Copy link
Contributor Author

RByers commented Dec 10, 2015

After doing more research, it seems that MOST of the uses of initTouchEvent we see in httparchive actually wouldn't work on Safari or Chrome (because Safari requires all 18 arguments to be supplied (despite their documentation saying otherwise) - perhaps a breaking change at some point that nobody noticed). We're now considering removing our (incompatible) initTouchEvent method from blink entirely. If we decide to do that, then I propose we undo the change to add it to the spec.

@RByers RByers changed the title standardize initTouchEvent Standardize initTouchEvent? Dec 10, 2015
@RByers
Copy link
Contributor Author

RByers commented Dec 22, 2015

We've decided not to do this after all in favor of just pushing the constructors. Let me know if anyone disagrees - happy to discuss further.

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

2 participants
@RByers and others