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.
- Variant that contains an unintentional error but still
- 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.