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

Proposal: remove touchevents from the project #2432

Closed

Conversation

roblarsen
Copy link
Contributor

This PR removes the touchevents detect from the project.

While renaming the test did, in fact, make the test accurately describe what it was testing, it still doesn't do what people think it does. this creates endless confusion (more than we see) and bug reports (the tip of the iceberg of people having problems with this detect.)

We can't create a test that does what people think this test does so we should end the confusion and remove the test. If people want the test in their projects it's an easy one to implement.

Additionally, I would argue that testing for what people think this test does is harmful to users and contributing to that pattern (even via a misunderstanding of what this test does) is bad for the web.

See:

#2431
#2430
#2428
#2134
#548
#1731
#2156
#1628
#1225
#869
#1344
#1179
#884
#1161

This PR removes the `touchevents` detect from the project.

While renaming the test did, in fact, make the test accurately describe what it was testing, it still doesn't do what people think it does. this creates endless confusion (more than we see) and bug reports (the tip of the iceberg of people having problems with this detect.)

We can't create a test that does what people think this test does so we should end the confusion and remove the test. If people want the test in their projects it's an easy one to implement.

Additionally, I would argue that testing for what people _think_ this test does is harmful to users and contributing to that pattern (even via a misunderstanding of what this test does) is bad for the web.
@rejas
Copy link
Member

rejas commented Mar 27, 2019

+1 for this. I'd like to see some form of documentation about this removal in the docs through this PR too.

Additionally: Are there other tests like this that are confusing (because they test the brwoser, not the device) ?

@roblarsen
Copy link
Contributor Author

IIRC all the docs are generated by the feature detects themselves, right? That would be weird here.

@rejas
Copy link
Member

rejas commented Mar 28, 2019

I thought of the normal README in the github as well as in https://modernizr.com/docs (that page is generated via hbs templates in modernizr-neue too)

@roblarsen
Copy link
Contributor Author

I've got a branch with a docs update for this. I'll open a PR shortly.

@scott-thrillist
Copy link

scott-thrillist commented Jun 27, 2019

ab5febb

Yes, please just remove it at this point. It really stinks that we can't reliably define how the user is interacting with their device so we can do things such as preventing clicks from registering as a hover event on an iPad, but the more I think about it that's on the browser creators to sort out.

@roblarsen
Copy link
Contributor Author

Sorry, I spaced on the other half of this!

@rejas
Copy link
Member

rejas commented Jun 29, 2019

No worries @roblarsen but will you come back to it?

@roblarsen
Copy link
Contributor Author

Sure, yeah. I have a branch with some docs, I don't remember where I was with that, but I'll pull it down and take a look

@rejas
Copy link
Member

rejas commented Jun 30, 2019

Just a thought: Maybe renaming it to "browsertouch" would be a good middleground (keeping it but indicating that its the brwoser not the device that is tested)?

@rejas
Copy link
Member

rejas commented Oct 23, 2019

Now officially deprecated with #2472

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

Successfully merging this pull request may close these issues.

None yet

3 participants