Browse Source

fix rotues check when loop is active

Hakim El Hattab 12 years ago
parent
commit
3bae233289
2 changed files with 3 additions and 3 deletions
  1. 2 2
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 2 - 2
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
 		};

File diff suppressed because it is too large
+ 1 - 1
js/reveal.min.js


Some files were not shown because too many files changed in this diff