Fix crash if user pans during transitions.