flatten slide number when there are only vertical slides

This commit is contained in:
Hakim El Hattab 2018-05-24 09:21:37 +02:00
parent 3c5c50f3fe
commit 30b670cf42

View File

@ -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 );