From 9ab14374e5d119b5d82adcdcac6078bcaba7bb73 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 2 Jun 2017 12:13:41 +0200 Subject: [PATCH] change condition for detecting when there are horizontal slides --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/reveal.js b/js/reveal.js index 997337b5..ae0ec358 100644 --- a/js/reveal.js +++ b/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 {