1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-12 01:25:17 +02:00

initial react wrapper exploration

This commit is contained in:
Hakim El Hattab
2024-03-25 10:09:49 +01:00
parent 6410c756ea
commit 27e1dfbc1e
17 changed files with 2975 additions and 5 deletions

View File

@@ -1389,6 +1389,8 @@ export default function( revealElement, options ) {
*/
function slide( h, v, f, origin ) {
if( Reveal.isReady() === false ) return;
// Dispatch an event before the slide
const slidechange = dispatchEvent({
type: 'beforeslidechange',
@@ -1653,6 +1655,8 @@ export default function( revealElement, options ) {
*/
function sync() {
if( Reveal.isReady() === false ) return;
// Subscribe to input
removeEventListeners();
addEventListeners();