fix(settings): fix menu icon flashing the wrong image for a frame

This commit is contained in:
2026-02-10 14:10:16 +01:00
parent d7783d881e
commit 9843379126

View File

@@ -10,10 +10,9 @@ export const useMenuAnimation = (key: string, isOpen: Ref<boolean>) => {
})); }));
watch(isOpen, (current, previous) => { watch(isOpen, (current, previous) => {
animation.value.playing = true;
const timeline = gsap.timeline({ const timeline = gsap.timeline({
onStart: () => {
animation.value.playing = true;
},
onComplete: () => { onComplete: () => {
animation.value.playing = false; animation.value.playing = false;
}, },