add rotating detection to touch events