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

Request: Touch identification #132

Open
knider opened this issue Jan 26, 2017 · 4 comments
Open

Request: Touch identification #132

knider opened this issue Jan 26, 2017 · 4 comments

Comments

@knider
Copy link

knider commented Jan 26, 2017

Can we have a method that detects whether the browser supports Touch or not? I'd like to be able to identify smaller devices such as Microsoft's surface that can be used like a tablet but are not identified as a tablet.

@oalders
Copy link
Owner

oalders commented Jan 27, 2017

How would you propose we detect this from the useragent string?

@andrewmoise
Copy link
Collaborator

What about just detecting the Surface as a tablet?

@oalders
Copy link
Owner

oalders commented Jan 27, 2017

@andrewmoise that sounds good to me.

@knider
Copy link
Author

knider commented Jan 27, 2017

I don't think the surface is truly defined as a tablet. Use this:
ENV{HTTP_USER_AGENT} =~ m/Touch/

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

3 participants