Request: Touch identification
knider opened this issue · 4 comments
knider commented
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 commented
How would you propose we detect this from the useragent string?
andrewmoise commented
What about just detecting the Surface as a tablet?
oalders commented
@andrewmoise that sounds good to me.
knider commented
I don't think the surface is truly defined as a tablet. Use this:
ENV{HTTP_USER_AGENT} =~ m/Touch/