Clear Freeplay previews when switching selection

Makes it harder to crash Freeplay when scrolling really fast
This commit is contained in:
ComedyLost
2026-01-29 22:07:58 -07:00
committed by Hundrec
parent dd512d02e7
commit b04a7708b1
+7 -3
View File
@@ -2921,9 +2921,13 @@ class FreeplayState extends MusicBeatSubState
// switchBackingImage(currentCapsule.freeplayData);
}
// Small vibrations every selection change.
if (change != 0) HapticUtil.vibrate(0, 0.01, 0.5);
// Clear song previews and add small vibrations every selection change.
if (change != 0)
{
clearPreviews();
HapticUtil.vibrate(0, 0.01, 0.5);
}
dispatchEvent(new CapsuleScriptEvent(CAPSULE_SELECTED, currentCapsule, currentDifficulty, currentVariation));
}