From a932c9aac9dc05c97337d308387990d45e731a1f Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Tue, 10 Feb 2026 14:57:39 +0100 Subject: [PATCH] fix(settings): wrong moment to set buttonYOffset to 0 --- app/stores/settings.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/stores/settings.ts b/app/stores/settings.ts index bd4dd24..d68c76d 100644 --- a/app/stores/settings.ts +++ b/app/stores/settings.ts @@ -111,9 +111,6 @@ export const useSettingsStore = defineStore("settings", { }, async closeSubMenu() { - const confirmationModal = useConfirmationModal(); - confirmationModal.buttonsYOffset = 0; - await gsap .timeline() .to(this, { @@ -123,6 +120,8 @@ export const useSettingsStore = defineStore("settings", { }) .call(() => { this.currentSubMenu = null; + const confirmationModal = useConfirmationModal(); + confirmationModal.buttonsYOffset = 0; }) .fromTo( this.submenuBackground,