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.
This commit is contained in:
fabiano 2014-05-09 15:58:56 -03:00
parent d072be2f57
commit cb4fe35bac
1 changed files with 1 additions and 1 deletions

View File

@ -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