diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index 240dc42..8feb45d 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -73,7 +73,10 @@ // based) hashOneBasedIndex: false, - // Determine which displays to show the slide number on + // Controls which contexts the slide number should appear in + // - "all": Always show the slide number + // - "print": Only when printing to PDF + // - "speaker": Only in the speaker view showSlideNumber: 'all', // Add the current slide number to the URL hash so that reloading the @@ -2097,6 +2100,8 @@ var size = getComputedSlideSize(); + var oldScale = scale; + // Layout the contents of the slides layoutSlideContents( config.width, config.height ); @@ -2169,6 +2174,13 @@ } + if( oldScale !== scale ) { + dispatchEvent( 'resize', { + 'oldScale': oldScale, + 'scale': scale, + 'size': size + } ); + } } updateProgress(); |