Disabled gesture capture while any form control is handling input

Fixes #1621

Platform::touchEventInternal(Touch::TOUCH_RELEASE ...) doesn't get called when a gesture has been detected. This results in controls not receiving their release events if the user releases their touch at the end of a gesture.