fix(home): block button interaction while animating
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user