1
0
Fork 0

allow hiding of vertical slide stacks

This commit is contained in:
Hakim El Hattab 2013-08-18 00:01:28 -04:00
parent 3dc53b891d
commit 271bae6b56
2 changed files with 5 additions and 11 deletions

View File

@ -1688,11 +1688,10 @@ var Reveal = (function(){
// Loops so that it measures 1 between the first and last slides // Loops so that it measures 1 between the first and last slides
distanceX = Math.abs( ( indexh - x ) % ( horizontalSlidesLength - viewDistance ) ) || 0; 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 if( verticalSlidesLength ) {
// slides are invisible
horizontalSlide.style.display = 'block';
var oy = getPreviousVerticalIndex( horizontalSlide ); var oy = getPreviousVerticalIndex( horizontalSlide );
@ -1705,11 +1704,6 @@ var Reveal = (function(){
} }
} }
else {
horizontalSlide.style.display = distanceX > viewDistance ? 'none' : 'block';
}
} }
} }

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long