Skip to content

Commit f14b9e5

Browse files
authored
Get back to previous fragment when using shift+space (#21)
1 parent 5d2b2c2 commit f14b9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jupyterlab-slideshow/src/notebook/presenter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ export class NotebookPresenter implements IPresenter<NotebookPanel> {
411411
panel.content.activeCellIndex = moveTo;
412412
} else if (fromExtentAlternate != null) {
413413
let moveTo = fromExtentAlternate;
414-
if (['back', 'forward'].includes(direction)) {
414+
if (alternate && ['back', 'forward'].includes(alternate)) {
415415
moveTo = this._slideBackup(extents, activeCellIndex, fromExtentAlternate);
416416
}
417417
panel.content.activeCellIndex = moveTo;

0 commit comments

Comments
 (0)