added functionality of touchevent on iPad