Optimize ui touch event dispatcher