From 4151857033af1f53b1ff04a7347f498b0dc618fd Mon Sep 17 00:00:00 2001 From: PeculiarProgrammer <179261820+PeculiarProgrammer@users.noreply.github.com> Date: Fri, 8 Nov 2024 22:14:21 -0500 Subject: [PATCH 1/2] Permit multiple reverses --- manim_slides/present/player.py | 3 +++ 1 file changed, 3 insertions(+) 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() From bd168f5392a69f486d97278a0e4e55a4e48197f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Eertmans?= Date: Tue, 12 Nov 2024 12:08:56 +0100 Subject: [PATCH 2/2] chore(docs): add changelog entry --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) 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)