restrict conditions when converting touch events into mouse events