Browse Source

allow hiding of vertical slide stacks

embed
Hakim El Hattab 11 years ago
parent
commit
271bae6b56
  1. 12
      js/reveal.js
  2. 4
      js/reveal.min.js

12
js/reveal.js

@ -1688,11 +1688,10 @@ var Reveal = (function(){
// Loops so that it measures 1 between the first and last slides
distanceX = Math.abs( ( indexh - x ) % ( horizontalSlidesLength - viewDistance ) ) || 0;
if( verticalSlidesLength ) {
// Show the horizontal slide if it's within the view distance
horizontalSlide.style.display = distanceX > viewDistance ? 'none' : 'block';
// Always show the vertical stack itself, even if its child
// slides are invisible
horizontalSlide.style.display = 'block';
if( verticalSlidesLength ) {
var oy = getPreviousVerticalIndex( horizontalSlide );
@ -1705,11 +1704,6 @@ var Reveal = (function(){
}
}
else {
horizontalSlide.style.display = distanceX > viewDistance ? 'none' : 'block';
}
}
}

4
js/reveal.min.js

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