Fix navigatePrev() past beginning of stack: fixes issue #463.#463.#463.
Previously navigatePrev() was changing indexh and indexv; instead should call slide(h, v) and let it change indexh and indexv.
This commit is contained in:
parent
a9dce74e24
commit
510839ab04
|
@ -1758,9 +1758,9 @@ var Reveal = (function(){
|
||||||
var previousSlide = document.querySelector( HORIZONTAL_SLIDES_SELECTOR + '.past:nth-child(' + indexh + ')' );
|
var previousSlide = document.querySelector( HORIZONTAL_SLIDES_SELECTOR + '.past:nth-child(' + indexh + ')' );
|
||||||
|
|
||||||
if( previousSlide ) {
|
if( previousSlide ) {
|
||||||
indexv = ( previousSlide.querySelectorAll( 'section' ).length + 1 ) || undefined;
|
var v = ( previousSlide.querySelectorAll( 'section' ).length - 1 ) || undefined,
|
||||||
indexh --;
|
h = indexh - 1;
|
||||||
slide( indexh, indexv );
|
slide( h, v );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue