Parcourir la source

display more slides in overview

Hakim El Hattab il y a 11 ans
Parent
commit
ffd3ea410b
2 fichiers modifiés avec 4 ajouts et 8 suppressions
  1. 3 7
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 3 - 7
js/reveal.js

@@ -1593,15 +1593,11 @@ var Reveal = (function(){
 
 			// The number of steps away from the present slide that will
 			// be visible
-			var viewDistance = config.viewDistance;
+			var viewDistance = isOverview() ? 20 : config.viewDistance;
 
-			// Heavily limited on weaker devices
+			// Limit view distance on weaker devices
 			if( isMobileDevice ) {
-				viewDistance = 1;
-			}
-
-			if( isOverview() ) {
-				viewDistance = 6;
+				viewDistance = isOverview() ? 6 : 1;
 			}
 
 			for( var x = 0; x < horizontalSlidesLength; x++ ) {

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
js/reveal.min.js


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff