This only detects if the browser supports touch events, it doesn't determine if the device supports them. Try this in Chrome on a non–touch ...
stackoverflow.com