fix tap and touch events