Tweak animation to not roll 0 -> 1, overflow hidden (#5148)
This commit is contained in:
@@ -5,9 +5,9 @@
|
|||||||
// - The count is going down and is 1 less than a multiple of 100
|
// - The count is going down and is 1 less than a multiple of 100
|
||||||
export function decideShouldRoll(isSet: boolean, count: number) {
|
export function decideShouldRoll(isSet: boolean, count: number) {
|
||||||
let shouldRoll = false
|
let shouldRoll = false
|
||||||
if (!isSet && count === 0) {
|
if (!isSet && count === 1) {
|
||||||
shouldRoll = true
|
shouldRoll = true
|
||||||
} else if (count > 0 && count < 1000) {
|
} else if (count > 1 && count < 1000) {
|
||||||
shouldRoll = true
|
shouldRoll = true
|
||||||
} else if (count > 0) {
|
} else if (count > 0) {
|
||||||
const mod = count % 100
|
const mod = count % 100
|
||||||
|
|||||||
@@ -244,6 +244,7 @@ let PostCtrls = ({
|
|||||||
a.flex_row,
|
a.flex_row,
|
||||||
a.justify_center,
|
a.justify_center,
|
||||||
a.align_center,
|
a.align_center,
|
||||||
|
a.overflow_hidden,
|
||||||
{padding: 5},
|
{padding: 5},
|
||||||
(pressed || hovered) && t.atoms.bg_contrast_25,
|
(pressed || hovered) && t.atoms.bg_contrast_25,
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user