mirror of
https://github.com/got-feedBack/feedBack.git
synced 2026-09-16 09:50:08 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
f9a57ba044
commit
be78b4f29e
@@ -274,6 +274,10 @@
|
|||||||
// stinger ends (the machine already advanced, nothing re-fires it).
|
// stinger ends (the machine already advanced, nothing re-fires it).
|
||||||
const interrupted = _loadingLoop || _fadingLoop;
|
const interrupted = _loadingLoop || _fadingLoop;
|
||||||
if (interrupted) {
|
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;
|
_pendingLoop = interrupted;
|
||||||
_loadingLoop = null;
|
_loadingLoop = null;
|
||||||
_fadingLoop = null;
|
_fadingLoop = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user