浏览代码

change condition for detecting when there are horizontal slides

Hakim El Hattab 7 年之前
父节点
当前提交
9ab14374e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 {