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

utils_misc: deprecate window.isTouchDevice #463

Closed
wants to merge 1 commit into from

Conversation

johnd0e
Copy link
Contributor

@johnd0e johnd0e commented Mar 16, 2021

Motivation: #111 (comment)

@johnd0e johnd0e added the development general development issue label Mar 16, 2021
@johnd0e johnd0e marked this pull request as draft March 16, 2021 16:05
Comment on lines 266 to 267
return 'ontouchstart' in window // works on most browsers
|| 'onmsgesturechange' in window; // works on ie10
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively:

Suggested change
return 'ontouchstart' in window // works on most browsers
|| 'onmsgesturechange' in window; // works on ie10
return 'maxTouchPoints' in navigator && navigator.maxTouchPoints > 0;

@modos189 modos189 mentioned this pull request Nov 4, 2024
1 task
@modos189 modos189 closed this in #773 Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core development general development issue mobile
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants