Browse Source

fix rotues check when loop is active

embed
Hakim El Hattab 12 years ago
parent
commit
3bae233289
  1. 4
      js/reveal.js
  2. 4
      js/reveal.min.js

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

4
js/reveal.min.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save