Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix the condition

Manav Rathi83a84295ba95
diff --git a/web/apps/cast/src/services/cast.ts b/web/apps/cast/src/services/cast.ts
index a33c749f51..38f203db24 100644
--- a/web/apps/cast/src/services/cast.ts
+++ b/web/apps/cast/src/services/cast.ts
@@ -103,10 +103,10 @@ export const renderableImageURLs = async function* (castData: CastData) {
*/
let lastYieldTime = Date.now();
- // The first time around advance the lastYieldTime into the future so that
+ // The first time around regress the lastYieldTime into the past so that
// we don't wait around too long for the first slide (we do want to wait a
// bit, for the user to see the checkmark animation as reassurance).
- lastYieldTime += 7500; /* 7.5 s */
+ lastYieldTime -= slideDuration - 2500; /* wait at most 2.5 s */
while (true) {
const encryptedFiles = shuffled(