Fix RTL Navigation with space bar

This commit is contained in:
Ira Abramov 2014-10-11 18:59:36 +03:00
parent 588472c520
commit ccdb4ff248
2 changed files with 9 additions and 2 deletions

View File

@ -27,7 +27,7 @@ html, body, .reveal div, .reveal span, .reveal applet, .reveal object, .reveal i
.reveal menu, .reveal nav, .reveal output, .reveal ruby, .reveal section, .reveal summary,
.reveal time, .reveal mark, .reveal audio, video {
margin: 0;
padding: 0;
padding: 3m;
border: 0;
font-size: 100%;
font: inherit;

View File

@ -3432,6 +3432,9 @@
if( previousSlide ) {
var v = ( previousSlide.querySelectorAll( 'section' ).length - 1 ) || undefined;
var h = indexh - 1;
if( config.rtl ) {
h = indexh + 1;
}
slide( h, v );
}
}
@ -3446,8 +3449,12 @@
// Prioritize revealing fragments
if( nextFragment() === false ) {
if( config.rtl ) {
availableRoutes().down ? navigateDown() : navigateLeft();
} else {
availableRoutes().down ? navigateDown() : navigateRight();
}
}
// If auto-sliding is enabled we need to cue up
// another timeout