updated TouchEvent detection