This snippet maps touch events to their counterpart mouse event handlers