浏览代码

fix an error where reveal.js returned a 1> progress number when there were fragments on last slide

Hakim El Hattab 5 年之前
父节点
当前提交
922d791fd9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/reveal.js

+ 1 - 1
js/reveal.js

@@ -4197,7 +4197,7 @@
 
 		}
 
-		return pastCount / ( totalCount - 1 );
+		return Math.min( pastCount / ( totalCount - 1 ), 1 );
 
 	}