浏览代码

display more slides in overview

Hakim El Hattab 11 年之前
父节点
当前提交
ffd3ea410b
共有 2 个文件被更改,包括 4 次插入8 次删除
  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++ ) {

文件差异内容过多而无法显示
+ 1 - 1
js/reveal.min.js


部分文件因为文件数量过多而无法显示