if("ontouchstart" in window){ //タッチイベントがあるブラウザの処理 } else{ //タッチイベントがないブラウザの処理 }
if(Modernizr.touch){ //タッチイベントがあるブラウザの処理 } else{ //タッチイベントがないブラウザの処理 }