From 36932220168b399f6f936c10714d5888f9c1c37a Mon Sep 17 00:00:00 2001 From: xzadudu179 Date: Thu, 28 Aug 2025 18:12:05 +0800 Subject: [PATCH] fix: issue#84 --- .../Animations/TargetCursor/TargetCursor.vue | 28 +++++++------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/src/content/Animations/TargetCursor/TargetCursor.vue b/src/content/Animations/TargetCursor/TargetCursor.vue index 72326b5..168cc40 100644 --- a/src/content/Animations/TargetCursor/TargetCursor.vue +++ b/src/content/Animations/TargetCursor/TargetCursor.vue @@ -35,7 +35,7 @@ const moveCursor = (x: number, y: number) => { }); }; -let cleanupAnimation: () => void = () => {}; +let cleanupAnimation: () => void = () => { }; const setupAnimation = () => { if (!cursorRef.value) return; @@ -116,7 +116,7 @@ const setupAnimation = () => { activeTarget = target; - gsap.killTweensOf(cursorRef.value, 'rotation'); + gsap.killTweensOf(cursorRef.value); spinTl.value?.pause(); gsap.set(cursorRef.value, { rotation: 0 }); @@ -336,30 +336,22 @@ watch(