NCAA: 12.21.2 When a base runner is legally off her base after a pitch or as a result of a batter completing her turn at bat and she is in motion as the pitcher takes
possession of the ball within the pitcherโs circle, the base runner may continue
moving forward in the direction she is going without stopping; or she may
immediately and directly go back in the other direction.
Only the NCAA prohibits the runner in motion from stopping and then continuing the same direction. All other codes allow the runner in motion to stop and then decide immediately to continue or retreat.
In your cases, both plays were legal.