fixed handling of gestures with the parent container.