Procházet zdrojové kódy

allow hiding of vertical slide stacks

Hakim El Hattab před 10 roky
rodič
revize
271bae6b56
2 změnil soubory, kde provedl 4 přidání a 10 odebrání
  1. 3 9
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 3 - 9
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';
-
-				}
 			}
 
 		}

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 1 - 1
js/reveal.min.js


Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů