fix(settings): wrong moment to set buttonYOffset to 0
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user