fix rotues check when loop is active

This commit is contained in:
Hakim El Hattab 2013-03-04 16:55:39 -05:00
parent d5bf12275c
commit 3bae233289
2 changed files with 4 additions and 4 deletions

View File

@ -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
};

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long