measure touch events