aboutsummaryrefslogtreecommitdiffhomepage
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab2015-02-25 13:31:41 +0100
committerHakim El Hattab2015-02-25 13:31:41 +0100
commitf772c7eb508cb1373d509d8cfea3b89984290ae9 (patch)
tree635886f29c76ceee50a46163490809dc8a01e9b1 /js
parentea735f0a2f4983a54bed94e2ce83f6ebe297a225 (diff)
fix progress bar clicks in rtl mode #1131
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 850f431..d5294e6 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -4001,6 +4001,10 @@
var slidesTotal = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ).length;
var slideIndex = Math.floor( ( event.clientX / dom.wrapper.offsetWidth ) * slidesTotal );
+ if( config.rtl ) {
+ slideIndex = slidesTotal - slideIndex;
+ }
+
slide( slideIndex );
}