Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
Item 10
Item 11
Item 12
Item 13
Item 14
Item 15
Item 16
Item 17
Item 18
Item 19

This script works on iPhone, Android, and desktop computers. The point is to prove that literally translating the touch events to mouse events makes no sense from an interaction point of view. Try using the layer with a touchpad.

  1. Variant that contains an unintentional error but still works fine.
  2. Variant that doesn’t have the error and that proves you only need the touchstart event object. You can safely ignore the touchmove and touchend event objects.