remove styles from #1030, simplify navigatePrev
commit
6c7ba34edf
15
js/reveal.js
15
js/reveal.js
|
@ -3426,13 +3426,10 @@
|
||||||
navigateUp();
|
navigateUp();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Fetch the previous horizontal slide, if there is one
|
if( config.rtl ) {
|
||||||
var previousSlide = dom.wrapper.querySelector( HORIZONTAL_SLIDES_SELECTOR + '.past:nth-child(' + indexh + ')' );
|
navigateRight();
|
||||||
|
} else {
|
||||||
if( previousSlide ) {
|
navigateLeft();
|
||||||
var v = ( previousSlide.querySelectorAll( 'section' ).length - 1 ) || undefined;
|
|
||||||
var h = indexh - 1;
|
|
||||||
slide( h, v );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3446,8 +3443,12 @@
|
||||||
|
|
||||||
// Prioritize revealing fragments
|
// Prioritize revealing fragments
|
||||||
if( nextFragment() === false ) {
|
if( nextFragment() === false ) {
|
||||||
|
if( config.rtl ) {
|
||||||
|
availableRoutes().down ? navigateDown() : navigateLeft();
|
||||||
|
} else {
|
||||||
availableRoutes().down ? navigateDown() : navigateRight();
|
availableRoutes().down ? navigateDown() : navigateRight();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// If auto-sliding is enabled we need to cue up
|
// If auto-sliding is enabled we need to cue up
|
||||||
// another timeout
|
// another timeout
|
||||||
|
|
Loading…
Reference in New Issue