Преглед на файлове

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.
fabiano преди 11 години
родител
ревизия
cb4fe35bac
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      js/reveal.js

+ 1 - 1
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