Correctly reset when the slide event is prevented