I am guessing that he had his arm around her while she was standing on the railing. Then, when the ball came, he let go of her to catch the ball and then we see her starting to fall. She likely just started falling backwards a bit after losing her balance, but she was being held up vertically by the fact that her feet were on the railing. Still an impressive set of actions by the dad, though!