fix: QA report BUG-01 to BUG-12 full resolution - demo switcher, AI tutor stream, timeline alignment, cbt filtering, danger styling, streak celebration
This commit is contained in:
@@ -376,8 +376,9 @@
|
||||
function play(){
|
||||
clearTimeout(countTimer); clearTimeout(moodTimer); cancelAnimationFrame(countRAF); stopFw();
|
||||
const target=parseTarget();
|
||||
const sad = target<=2;
|
||||
const t = sad ? 0 : Math.min(1, Math.log10(Math.max(target,3)/3)/3); // 5→0 … 5000+→1
|
||||
// BUG-11 fix: Positive streaks (>=1) should always be celebratory, never sad
|
||||
const sad = target < 0;
|
||||
const t = sad ? 0 : Math.min(1, Math.log10(Math.max(target, 1) + 1) / 2.5); // Smooth positive scaling
|
||||
|
||||
// set mood + intensity
|
||||
stage.classList.remove('play','happy','sad','tier1','tier2','tier3'); body.classList.remove('sad');
|
||||
|
||||
Reference in New Issue
Block a user