code: function TouchEmulator() {
          if (hasTouchSupport()) {
              return;
          }
  
          fakeTouchSupport();
  
          window.addEventListener("mousedown", onMouse('touchstart'), true);
          window.addEventListener("mousemove", onMouse('touchmove'), true);
          window.addEventListener("mouseup", onMouse('touchend'), true);
  
          window.addEventListener("mouseenter", preventMouseEvents, true);
          window.addEventListener("mouseleave", preventMouseEvents, true);
          window.addEventListener("mouseout", preventMouseEvents, true);
          window.addEventListener("mouseover", preventMouseEvents, true);
  
          // it uses itself!
          window.addEventListener("touchstart", showTouches, false);
          window.addEventListener("touchmove", showTouches, false);
          window.addEventListener("touchend", showTouches, false);
          window.addEventListener("touchcancel", showTouches, false);
      }
docs: TouchEmulator initializer