From cb4fe35bac514fcacf98b76f094071b9d50a722b Mon Sep 17 00:00:00 2001
From: fabiano <fabianorosas@gmail.com>
Date: Fri, 9 May 2014 15:58:56 -0300
Subject: [PATCH] fixed a problem in the function isFirstSlide

when visiting a vertical slide and then going back to the first slide, the function would return false.
made it more fail proof by checking the indices directly.
---
 js/reveal.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/reveal.js b/js/reveal.js
index da43738..3bd75a2 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3902,7 +3902,7 @@
 
 		// Returns true if we're currently on the first slide
 		isFirstSlide: function() {
-			return document.querySelector( SLIDES_SELECTOR + '.past' ) == null ? true : false;
+			return ( indexh == 0 && indexv == 0 );
 		},
 
 		// Returns true if we're currently on the last slide
-- 
GitLab