From be78b4f29e496177faae127569f918a1d10ef3ae Mon Sep 17 00:00:00 2001 From: byrongamatos Date: Sun, 12 Jul 2026 21:01:28 +0200 Subject: [PATCH] fix(venue-crowd): cancel in-flight fade when a stinger preempts it Codex preflight: the orphaned ramp kept pushing the mix toward the layer whose src the stinger had just replaced. Co-Authored-By: Claude Fable 5 --- static/v3/venue-crowd.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/v3/venue-crowd.js b/static/v3/venue-crowd.js index 79b319b..3d6fc87 100644 --- a/static/v3/venue-crowd.js +++ b/static/v3/venue-crowd.js @@ -274,6 +274,10 @@ // stinger ends (the machine already advanced, nothing re-fires it). const interrupted = _loadingLoop || _fadingLoop; if (interrupted) { + // Freeze any in-flight crossfade: its ramp would keep pushing the + // mix toward this layer while the stinger replaces the src (loop + // vanishing / stinger popping in at full opacity). + cancelFade(); _pendingLoop = interrupted; _loadingLoop = null; _fadingLoop = null;