From 922d791fd9d74caea9d706dbf39250146082ee62 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Mon, 25 Mar 2019 12:00:46 +0100
Subject: fix an error where reveal.js returned a 1> progress number when there
 were fragments on last slide

---
 js/reveal.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/reveal.js b/js/reveal.js
index 65866cc..c3ead43 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -4197,7 +4197,7 @@
 
 		}
 
-		return pastCount / ( totalCount - 1 );
+		return Math.min( pastCount / ( totalCount - 1 ), 1 );
 
 	}
 
-- 
cgit v1.2.3