Update touch event logic