From 9cd43d8c6761d49eda58034ba1bba3907ce45237 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 10 Dec 2025 15:57:41 -0500 Subject: [PATCH] Cap ambient particles to five concurrently --- assets/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/app.js b/assets/app.js index 457a2ef..4242763 100644 --- a/assets/app.js +++ b/assets/app.js @@ -410,6 +410,8 @@ function scheduleAmbientDrift() { const delay = 10000 + Math.random() * 10000; // 10–20s fireflyTimer = setTimeout(() => { if (!animationsEnabled) { stopAmbientDrift(); return; } + const existing = document.querySelectorAll(isDarkMode ? '.firefly-wrap' : '.seed-wrap').length; + if (existing >= 5) { scheduleAmbientDrift(); return; } if (isDarkMode) { spawnFirefly(); } else {