Avoid invalid states if user taps while an animation is active