oalders/http-browserdetect

Request: Touch identification

knider opened this issue · 4 comments

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.

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

What about just detecting the Surface as a tablet?

@andrewmoise that sounds good to me.

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