Listen to both mouse and touch events
snapshot