From fce78d1c1a74906a08f609861a041e00301677c3 Mon Sep 17 00:00:00 2001 From: Marty Alcala Date: Sun, 4 Aug 2024 23:44:33 -0400 Subject: [PATCH] fix: reset interpolateProgress to 0 on data changes to trigger a path interpolation animation --- src/AnimatedLineGraph.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AnimatedLineGraph.tsx b/src/AnimatedLineGraph.tsx index bee225a..2d52f65 100644 --- a/src/AnimatedLineGraph.tsx +++ b/src/AnimatedLineGraph.tsx @@ -249,6 +249,7 @@ export function AnimatedLineGraph({ setCommandsChanged(commandsChanged + 1) + interpolateProgress.value = 0 interpolateProgress.value = withSpring(1, { mass: 1, stiffness: 500,