Merge "Check for isAttachedToWindow before dispatching touch event" into main