Repository navigation
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #671 +/- ##
==========================================
+ Coverage 79.10% 79.24% +0.13%
==========================================
Files 23 23
Lines 2178 2173 -5
==========================================
- Hits 1723 1722 -1
+ Misses 455 451 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hi @wuerfelfreak: it looks like you messed up with another PR you are authoring, this entry is not related to this PR :-)
There was a problem hiding this comment.
I am a bit confused. This is PR #671 and the change in CHANGELOG.md also references #671. And the change also matches the title of this PR.
The line I added in commit fa2a67b was the following, right?
- Fixed presenter not reversing to previous scene.
[@wuerfelfreak](https://github.com/wuerfelfreak) [#671](https://github.com/jeertmans/manim-slides/pull/671)
(By merging with main (in commit ce4262f) I also incorporated the changelog entry of #673 but that is not one of my PRs)
I can't see where I messed up. Am I missing something?
There was a problem hiding this comment.
That's super weird: I would swear that GitHub would have printed a different changelog entry. Maybe it was a bug from their side, but it is now fixed apparently.
|
Thanks! |
* Fixed presenter not reversing to previous scene * Fixed presenter not reversing to previous scene - Changelog --------- Co-authored-by: wuerfelfreak <>
Fixes Issue
When present is called with multiple scenes (e.g.
manim-slides Scene1 Scene2) and is advanced to the second scene it is not possible to get back to the first scene by pressing the reverse button. As soon as the first slide of the second slide is reached by pressing the reverse button, further presses only restart the animation. Pressing the previous_slide button however does work to get back to the first scene.This is because
reversechecks ifcurrent_slide_index >= 1but does not consider thatcurrent_presentation_indexmight be> 0.Description
load_previous_slidealready correctly implements the boundary check. Therefore I reused the implementation ofload_previous_slide. To do that I moved the assignment of self.playing_reversed_slide toreverseandpreviousand then calledload_previous_slidefrom both, eliminatingload_reversed_slidein the process.Check List
Check all the applicable boxes: