fix(home): block button interaction while animating

This commit is contained in:
2025-11-15 00:04:44 +01:00
parent b64139350c
commit 0c5490d4ee

View File

@@ -19,6 +19,7 @@ const { selectedButton, selectorPosition } = useButtonNavigation({
buttons: BUTTONS_CONFIG,
initialButton: "game",
onButtonClick: (buttonName) => {
if (animationPercentage.value > 0) return;
gsap.fromTo(
animationPercentage,
{ value: 0 },