From 86de0dda026f2c0ed8362272f5c54b35643cbdec Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 4 Sep 2024 12:36:20 -0700 Subject: [PATCH] Tweak animation to not roll 0 -> 1, overflow hidden (#5148) --- src/lib/custom-animations/util.ts | 4 ++-- src/view/com/util/post-ctrls/PostCtrls.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/custom-animations/util.ts b/src/lib/custom-animations/util.ts index 0aebab57..f3b9cbc5 100644 --- a/src/lib/custom-animations/util.ts +++ b/src/lib/custom-animations/util.ts @@ -5,9 +5,9 @@ // - The count is going down and is 1 less than a multiple of 100 export function decideShouldRoll(isSet: boolean, count: number) { let shouldRoll = false - if (!isSet && count === 0) { + if (!isSet && count === 1) { shouldRoll = true - } else if (count > 0 && count < 1000) { + } else if (count > 1 && count < 1000) { shouldRoll = true } else if (count > 0) { const mod = count % 100 diff --git a/src/view/com/util/post-ctrls/PostCtrls.tsx b/src/view/com/util/post-ctrls/PostCtrls.tsx index de73103c..1cad5e09 100644 --- a/src/view/com/util/post-ctrls/PostCtrls.tsx +++ b/src/view/com/util/post-ctrls/PostCtrls.tsx @@ -244,6 +244,7 @@ let PostCtrls = ({ a.flex_row, a.justify_center, a.align_center, + a.overflow_hidden, {padding: 5}, (pressed || hovered) && t.atoms.bg_contrast_25, ],