Procházet zdrojové kódy

change condition for detecting when there are horizontal slides

Hakim El Hattab před 7 roky
rodič
revize
9ab14374e5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      js/reveal.js

+ 1 - 1
js/reveal.js

@@ -2764,7 +2764,7 @@
 			}
 
 			// Flag if there are ANY horizontal slides, anywhere in the deck
-			if( dom.wrapper.querySelectorAll( '.slides>section:not(.stack)' ).length ) {
+			if( dom.wrapper.querySelectorAll( '.slides>section' ).length > 1 ) {
 				dom.wrapper.classList.add( 'has-horizontal-slides' );
 			}
 			else {