flip-flop
noun
a sudden or unexpected reversal, as of direction, belief, attitude, or policy.
Used to describe an action that was ongoing continuously in the past up until another past event interrupted it.