Skip to content

Commit 2e1eb96

Browse files
committed
Correctly export function for toggling scroll view
1 parent cf81582 commit 2e1eb96

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/resources/formats/revealjs/plugins/menu/quarto-menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ window.RevealMenuToolHandlers = {
4141
PdfExport.togglePdfExport();
4242
}),
4343
toggleScrollView: revealMenuToolHandler(function() {
44-
Reveal.getPlugin("quarto-support").toggleScrollView(Reveal)();
44+
Reveal.getPlugin("quarto-support").toggleScrollView(Reveal);
4545
})
4646
};

src/resources/formats/revealjs/plugins/support/support.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ window.QuartoSupport = function () {
392392
cleanEmptyAutoGeneratedContent(deck);
393393
},
394394
// Export for adding in menu
395-
toggleScrollView: toggleScrollViewWrapper,
395+
toggleScrollView: function(deck) {
396+
toggleScrollViewWrapper(deck)()
397+
}
396398
};
397399
};

0 commit comments

Comments
 (0)