diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-02-09 09:35:05 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-02-09 09:35:12 +0100 |
commit | 2ed1d6fb5dd7aa24918342197554fd7a6fbf6797 (patch) | |
tree | 0508d4b7eeb23091e4e98f329758d378e959a02e /js | |
parent | a4852c7cb2a5792d0ead3ee59435371225755dea (diff) | |
download | perl-software-in-gnu-guix-2ed1d6fb5dd7aa24918342197554fd7a6fbf6797.tar perl-software-in-gnu-guix-2ed1d6fb5dd7aa24918342197554fd7a6fbf6797.tar.gz |
fix looped view distance calculation
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 2 |
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 |