about summary refs log tree commit diff
path: root/src/lib/custom-animations/CountWheel.web.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-09-02 03:15:31 -0700
committerGitHub <noreply@github.com>2024-09-02 03:15:31 -0700
commit4abcd65ccf94e36251142faeabdac42cada490fe (patch)
tree31b3fa46704a0c4502ed7a52eb0b1531af9628c4 /src/lib/custom-animations/CountWheel.web.tsx
parent05ac76fc8942ec9ceda83d0f35a61763ae9bbcb5 (diff)
downloadvoidsky-4abcd65ccf94e36251142faeabdac42cada490fe.tar.zst
More tweaks to animation (#5082)
Diffstat (limited to 'src/lib/custom-animations/CountWheel.web.tsx')
-rw-r--r--src/lib/custom-animations/CountWheel.web.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/custom-animations/CountWheel.web.tsx b/src/lib/custom-animations/CountWheel.web.tsx
index 618dcb1a5..594117bfe 100644
--- a/src/lib/custom-animations/CountWheel.web.tsx
+++ b/src/lib/custom-animations/CountWheel.web.tsx
@@ -83,7 +83,6 @@ export function CountWheel({
   return (
     <View>
       <View
-        aria-disabled={true}
         // @ts-expect-error is div
         ref={countView}>
         <Text
@@ -98,9 +97,9 @@ export function CountWheel({
           {formattedCount}
         </Text>
       </View>
-      {shouldAnimate ? (
+      {shouldAnimate && (likeCount > 1 || !isLiked) ? (
         <View
-          style={{position: 'absolute'}}
+          style={{position: 'absolute', opacity: 0}}
           aria-disabled={true}
           // @ts-expect-error is div
           ref={prevCountView}>