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

Keep track of the last fragment or sub-slide displayed when moving back or forward #11

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

brichet
Copy link
Collaborator

@brichet brichet commented Jan 8, 2025

Initially opened at deathbeds/jupyterlab-deck#65

Checklist

  • ran doit lint locally

References

deathbeds/jupyterlab-deck#49

Code changes

Adds a redirect attribute to slide extent.
This new attribute is filled with the index of the last fragment or subslide displayed in this "slide group".
It is used when falling back on a slide with left/right arrows.

User-facing changes

Using left/right arrows does not necessarily fall back on a Slide type anymore, but on the latest fragment of that slide.

Backwards-incompatible changes

None

@brichet brichet force-pushed the back_forward_redirection branch from 18d1c3d to 8470e3e Compare January 8, 2025 13:50
@brichet brichet force-pushed the back_forward_redirection branch from 8470e3e to 15d6c0c Compare January 8, 2025 14:53
@brichet brichet merged commit 8605410 into jupyterlab-contrib:main Jan 8, 2025
1 check passed
@brichet brichet deleted the back_forward_redirection branch January 13, 2025 13:02
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.

1 participant