aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-10-16 15:43:29 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-10-16 15:43:29 +0200
commit6c7ba34edf1dfff171fa808ff15796c2dac13b1c (patch)
tree02dbcd0bab0e89d23da500faa8fa5e85d58f2e4d
parenteec72c1491cda1c42ed8b3c40959892755aa2e93 (diff)
parentccdb4ff248c9883c3f2e922e243ec426a918bfcb (diff)
downloadperl-software-in-gnu-guix-6c7ba34edf1dfff171fa808ff15796c2dac13b1c.tar
perl-software-in-gnu-guix-6c7ba34edf1dfff171fa808ff15796c2dac13b1c.tar.gz
remove styles from #1030, simplify navigatePrev
-rw-r--r--js/reveal.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/js/reveal.js b/js/reveal.js
index ef52ac6..4b1fbc8 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3426,13 +3426,10 @@
navigateUp();
}
else {
- // Fetch the previous horizontal slide, if there is one
- var previousSlide = dom.wrapper.querySelector( HORIZONTAL_SLIDES_SELECTOR + '.past:nth-child(' + indexh + ')' );
-
- if( previousSlide ) {
- var v = ( previousSlide.querySelectorAll( 'section' ).length - 1 ) || undefined;
- var h = indexh - 1;
- slide( h, v );
+ if( config.rtl ) {
+ navigateRight();
+ } else {
+ navigateLeft();
}
}
}
@@ -3446,7 +3443,11 @@
// Prioritize revealing fragments
if( nextFragment() === false ) {
- availableRoutes().down ? navigateDown() : navigateRight();
+ if( config.rtl ) {
+ availableRoutes().down ? navigateDown() : navigateLeft();
+ } else {
+ availableRoutes().down ? navigateDown() : navigateRight();
+ }
}
// If auto-sliding is enabled we need to cue up