On my Windows 8 desktop PC (non-touchscreen), Firefox 26 incorrectly reports itself as a touchscreen device while other browsers like Chrome & IE don't?
Using the following different JavaScript snippets, Firefox always returns true and Chrome always false.
jQuery.support.touch
Of this code from James https://stackoverflow.com/a/4819886/498187
function is_touch_device() {
return 'ontouchstart' in window // works on most browsers
|| 'onmsgesturechange' in window; // works on ie10
};
My question is, is there a better way to check for touchscreen devices, one that Firefox will understand?