Skip to content

Commit

Permalink
Fix navigation if previous is subslide
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Jan 11, 2024
1 parent d24d22c commit 059b6f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/jupyterlab-deck/src/notebook/presenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,9 @@ export class NotebookPresenter implements IPresenter<NotebookPanel> {
} else if (f0) {
f0.down = index;
extent.up = f0.index;
} else if (ss0) {
ss0.down = index;
extent.up = ss0.index;

Check warning on line 853 in js/jupyterlab-deck/src/notebook/presenter.ts

View check run for this annotation

Codecov / codecov/patch

js/jupyterlab-deck/src/notebook/presenter.ts#L852-L853

Added lines #L852 - L853 were not covered by tests
} else if (s0) {
let lastOnScreen = this._lastOnScreenOf(s0.index, extents);
if (lastOnScreen) {
Expand Down

0 comments on commit 059b6f1

Please sign in to comment.