Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Presenter mode should show the next animation rather than the next slide #924

Merged
merged 2 commits into from
Jun 17, 2020

Conversation

vlsi
Copy link
Contributor

@vlsi vlsi commented Jun 15, 2020

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #914

Type of Change

Please delete options that are not relevant (including this descriptive text).

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Tested with start:js, presenter view now properly shows the preview of the next animation.

Checklist: (Feel free to delete this section upon completion)

  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

vlsi added 2 commits June 15, 2020 21:02
reverseDirection was always false when advancing from non-zero currentSlideElement
Copy link
Contributor

@kale-stew kale-stew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was initially hesitant to introduce a second Context to track the next element, since it seems like something that should be wrapped up into the presentation already via the existing SlideContext, but I think I've come around. As a note to our future selves, we should probably look at using this NextElementContext to fix a few other oddities in the presenter mode.

Thank you for this contribution, @vlsi, and bearing with the accidental PR closure! 🚢 Merging this one now.

@kale-stew kale-stew merged commit 33b7bca into FormidableLabs:main Jun 17, 2020
@vlsi
Copy link
Contributor Author

vlsi commented Jun 17, 2020

Thanks. I agree an extra context looks weird, however, I thought it should be good enough from the understanding and maintenance points of view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Presenter mode should show the next animation rather than the next slide
2 participants