aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Abramov <ira.abramov@alcatel-lucent.com>2014-10-11 18:59:36 +0300
committerIra Abramov <ira.abramov@alcatel-lucent.com>2014-10-11 18:59:36 +0300
commitccdb4ff248c9883c3f2e922e243ec426a918bfcb (patch)
treef44f5e8abe3e58588bca5c7e803a1d2299752149
parent588472c5204a1a55db7b99627c4ac4477117ad37 (diff)
downloadfreenode-live-2017-presentation-ccdb4ff248c9883c3f2e922e243ec426a918bfcb.tar
freenode-live-2017-presentation-ccdb4ff248c9883c3f2e922e243ec426a918bfcb.tar.gz
Fix RTL Navigation with space bar
-rw-r--r--css/reveal.css2
-rw-r--r--js/reveal.js9
2 files changed, 9 insertions, 2 deletions
diff --git a/css/reveal.css b/css/reveal.css
index 20d1405..399b698 100644
--- a/css/reveal.css
+++ b/css/reveal.css
@@ -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;
diff --git a/js/reveal.js b/js/reveal.js
index a0b92ac..52cc615 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -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,7 +3449,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