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