diff --git a/CHANGELOG.md b/CHANGELOG.md index c4276972..7e1c67a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 HTML presentations. [#440](https://github.com/jeertmans/manim-slides/pull/440) +(unreleased-changed)= +### Changed + +- Allow multiple slide reverses by going backward [@PeculiarProgrammer](https://github.com/PeculiarProgrammer). + [#488](https://github.com/jeertmans/manim-slides/pull/488) + (v5.1.9)= ## [v5.1.9](https://github.com/jeertmans/manim-slides/compare/v5.1.8...v5.1.9) diff --git a/manim_slides/present/player.py b/manim_slides/present/player.py index 4c11409e..f029a846 100644 --- a/manim_slides/present/player.py +++ b/manim_slides/present/player.py @@ -515,6 +515,9 @@ def previous(self) -> None: @Slot() def reverse(self) -> None: + if self.playing_reversed_slide and self.current_slide_index >= 1: + self.current_slide_index -= 1 + self.load_reversed_slide() self.preview_next_slide()