aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/reveal.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 163bc99..0f40977 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3043,6 +3043,12 @@
format = config.slideNumber;
}
+ // If there are ONLY vertical slides in this deck, always use
+ // a flattened slide number
+ if( !/c/.test( format ) && dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ).length === 1 ) {
+ format = 'c';
+ }
+
switch( format ) {
case 'c':
value.push( getSlidePastCount() + 1 );