summaryrefslogtreecommitdiffhomepage
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab2013-03-04 16:55:39 -0500
committerHakim El Hattab2013-03-04 16:55:39 -0500
commit3bae233289b50bb811c1c9b19ad882944769e9b5 (patch)
tree66114c8e267b355d73460567a707dfa66c5b33af /js/reveal.js
parentd5bf12275c0c84f02e73e321f09389649b515d54 (diff)
fix rotues check when loop is active
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 1ce3481..65ba58d 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1324,8 +1324,8 @@ var Reveal = (function(){
verticalSlides = document.querySelectorAll( VERTICAL_SLIDES_SELECTOR );
return {
- left: indexh > 0,
- right: indexh < horizontalSlides.length - 1,
+ left: indexh > 0 || config.loop,
+ right: indexh < horizontalSlides.length - 1 || config.loop,
up: indexv > 0,
down: indexv < verticalSlides.length - 1
};