The allowing for both mouse and touch events.