Initialize touch events for a selector:
document.getElementById style also works.
Devices that emit touch events in response to user touches will translate them into mouse events for you, but there's a catch: if you rely on the
mousemove event while the mouse button is down, the events might not fire in the order you expect.
This technique intercepts the touch events and generates custom mouse events in the same order. This makes techniques involving
mousemove, such as dragging, more predictable across devices.