allow hiding of vertical slide stacks
This commit is contained in:
parent
3dc53b891d
commit
271bae6b56
12
js/reveal.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
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user