fix(home): block button interaction while animating

This commit is contained in:
2025-11-15 00:04:44 +01:00
parent 055bbf7a29
commit 458f027cdb

View File

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