element.addEventListener("MSPointerDown",handleDown,false); function handleDown(event) {   if(event.pointerType == event.MSPOINTER_TYPE_TOUCH) {     // Do something for touch input only   }else{     // Do something for non-touch input