From 0129f162028eb706a72c5744e6fb17dc5fdacca6 Mon Sep 17 00:00:00 2001 From: Rishit Gupta <74411873+Rishit30G@users.noreply.github.com> Date: Fri, 25 Jul 2025 21:55:02 +0530 Subject: [PATCH] fix: add speed dependency to animation frame in MarqueeRow --- components/home/testimonials.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/home/testimonials.tsx b/components/home/testimonials.tsx index fd07ae1d..d00d0de1 100644 --- a/components/home/testimonials.tsx +++ b/components/home/testimonials.tsx @@ -157,7 +157,7 @@ const MarqueeRow = ({ animationFrame.current = requestAnimationFrame(animate); return () => cancelAnimationFrame(animationFrame.current); - }, [containerWidth, reverse, shouldReduceMotion]); + }, [containerWidth, reverse, shouldReduceMotion, speed]); const pause = () => (isPaused.current = true); const resume = () => {