In this case, ‘Not until I saw what happened’ is the adverbial clause. The inversion takes place after this, in the main clause. This happens with 'Not +time' and 'Only + time'. 'Not since ...