Skip to content

Commit

Permalink
feat(cli): allow multiple reverses (#488)
Browse files Browse the repository at this point in the history
* Permit multiple reverses

* chore(docs): add changelog entry

---------

Co-authored-by: Jérome Eertmans <[email protected]>
  • Loading branch information
PeculiarProgrammer and jeertmans authored Nov 12, 2024
1 parent 3dbe12b commit 988011f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions manim_slides/present/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 988011f

Please sign in to comment.