From 0014d4363fa869389d7739ff9e3ffbbb03f5679c Mon Sep 17 00:00:00 2001
From: Hailey <me@haileyok.com>
Date: Tue, 3 Sep 2024 10:55:53 -0700
Subject: Only animate the like icon when from an actual toggle (#5096)

---
 src/lib/custom-animations/CountWheel.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/lib/custom-animations/CountWheel.tsx')

diff --git a/src/lib/custom-animations/CountWheel.tsx b/src/lib/custom-animations/CountWheel.tsx
index 1a8676712..2e435f7d3 100644
--- a/src/lib/custom-animations/CountWheel.tsx
+++ b/src/lib/custom-animations/CountWheel.tsx
@@ -91,13 +91,15 @@ export function CountWheel({
   likeCount,
   big,
   isLiked,
+  isToggle,
 }: {
   likeCount: number
   big?: boolean
   isLiked: boolean
+  isToggle: boolean
 }) {
   const t = useTheme()
-  const shouldAnimate = !useReducedMotion()
+  const shouldAnimate = !useReducedMotion() && isToggle
   const shouldRoll = decideShouldRoll(isLiked, likeCount)
 
   // Incrementing the key will cause the `Animated.View` to re-render, with the newly selected entering/exiting
-- 
cgit 1.4.1

