Преглед изворни кода

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 );
 
 	}