aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-06-16 19:33:57 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-06-16 19:33:57 -0400
commit4fde6124e60ab98ad90b9392d02bb26bc7ca58b0 (patch)
tree2cb37ffb72af7665aeb19b80bb294455751c890a /js
parent56595d65cfe4431bd700ce0bf9972fb428a45518 (diff)
parentd355a040616b40dd76f82414c569acb23ef0595c (diff)
downloadperl-software-in-gnu-guix-4fde6124e60ab98ad90b9392d02bb26bc7ca58b0.tar
perl-software-in-gnu-guix-4fde6124e60ab98ad90b9392d02bb26bc7ca58b0.tar.gz
merge navigate prev fix #493
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 3003a2c..e7788c2 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -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 );
}
}
}