aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-02-09 09:35:05 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-02-09 09:35:12 +0100
commit2ed1d6fb5dd7aa24918342197554fd7a6fbf6797 (patch)
tree0508d4b7eeb23091e4e98f329758d378e959a02e /js
parenta4852c7cb2a5792d0ead3ee59435371225755dea (diff)
downloadfosdem-2018-presentation-2ed1d6fb5dd7aa24918342197554fd7a6fbf6797.tar
fosdem-2018-presentation-2ed1d6fb5dd7aa24918342197554fd7a6fbf6797.tar.gz
fix looped view distance calculation
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index fdf3204..3c06f8d 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2399,7 +2399,7 @@
// If the presentation is looped, distance should measure
// 1 between the first and last slides
if( config.loop ) {
- distanceX = distanceX % ( horizontalSlidesLength - viewDistance );
+ distanceX = Math.abs( ( ( indexh || 0 ) - x ) % ( horizontalSlidesLength - viewDistance ) ) || 0;
}
// Show the horizontal slide if it's within the view distance