Commit 30b670cf authored by Hakim El Hattab's avatar Hakim El Hattab

flatten slide number when there are only vertical slides

parent 3c5c50f3
......@@ -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 );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment