merge navigate prev fix #493

This commit is contained in:
Hakim El Hattab
2013-06-16 19:33:57 -04:00
5 changed files with 23 additions and 11 deletions

View File

@ -2051,9 +2051,9 @@ var Reveal = (function(){
var previousSlide = document.querySelector( HORIZONTAL_SLIDES_SELECTOR + '.past:nth-child(' + indexh + ')' );
if( previousSlide ) {
indexv = ( previousSlide.querySelectorAll( 'section' ).length + 1 ) || undefined;
indexh --;
slide( indexh, indexv );
var v = ( previousSlide.querySelectorAll( 'section' ).length - 1 ) || undefined;
var h = indexh - 1;
slide( h, v );
}
}
}