aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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