Revision: 29688
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 3, 2010 10:21 by jpdevries
Initial Code
function isTouchDevice() { var el = document.createElement('div'); el.setAttribute('ontouchmove', 'return;'); if(typeof el.ontouchmove == "function"){ return true; }else { return false } }
Initial URL
Initial Description
Google Chrome 5.0.375.125 on Mac OS X 10.6 presents itself returns true for this function, even though its not really a touch device?
Initial Title
isTouchDevice()
Initial Tags
Initial Language
JavaScript