Skip to content

Commit 86de0dd

Browse files
authored
Tweak animation to not roll 0 -> 1, overflow hidden (#5148)
1 parent 0ef17a4 commit 86de0dd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/lib/custom-animations/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
// - The count is going down and is 1 less than a multiple of 100
66
export function decideShouldRoll(isSet: boolean, count: number) {
77
let shouldRoll = false
8-
if (!isSet && count === 0) {
8+
if (!isSet && count === 1) {
99
shouldRoll = true
10-
} else if (count > 0 && count < 1000) {
10+
} else if (count > 1 && count < 1000) {
1111
shouldRoll = true
1212
} else if (count > 0) {
1313
const mod = count % 100

src/view/com/util/post-ctrls/PostCtrls.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ let PostCtrls = ({
244244
a.flex_row,
245245
a.justify_center,
246246
a.align_center,
247+
a.overflow_hidden,
247248
{padding: 5},
248249
(pressed || hovered) && t.atoms.bg_contrast_25,
249250
],

0 commit comments

Comments
 (0)