touch events and direct mode speedup