From bcd1bd22c4253f425aa489e79487f96959589007 Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Wed, 17 Dec 2025 21:02:21 +0100 Subject: [PATCH] fix(projects): block interactions during animation --- app/components/Projects/BottomScreen/Buttons.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/Projects/BottomScreen/Buttons.vue b/app/components/Projects/BottomScreen/Buttons.vue index 5bd5e5e..80ee6c4 100644 --- a/app/components/Projects/BottomScreen/Buttons.vue +++ b/app/components/Projects/BottomScreen/Buttons.vue @@ -79,7 +79,7 @@ const startButtonAnimation = (type: ButtonType) => { }; useScreenClick((x, y) => { - if (currentAnimation) return; + if (currentAnimation || store.isIntro || store.isOutro) return; const project = store.projects[store.currentProject]; if (circleContains(BUTTONS.prev.position, [x, y], CLICK_RADIUS)) { @@ -131,7 +131,7 @@ useRender((ctx) => { ctx.fillRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); }); useKeyDown((key) => { - if (currentAnimation) return; + if (currentAnimation || store.isIntro || store.isOutro) return; switch (key) { case "NDS_LEFT": startButtonAnimation("prev");