Skip to content

Fix wheel animation for zero-crossing and countdown#2356

Merged
tf merged 3 commits intocodevise:masterfrom
tf:wheel-fixes
Jan 30, 2026
Merged

Fix wheel animation for zero-crossing and countdown#2356
tf merged 3 commits intocodevise:masterfrom
tf:wheel-fixes

Conversation

@tf
Copy link
Member

@tf tf commented Jan 30, 2026

Refactor useWheelCharacters to properly handle animations that cross zero (both directions) and countdown scenarios. Extract digit animation logic into createDigitCharFunction for cleaner code.

Leading zeros now stay hidden until the wheel rotates past the backside, and zeros remain hidden when counting down since they become leading zeros.

REDMINE-21218

Refactor useWheelCharacters to properly handle animations that cross
zero (both directions) and countdown scenarios. Extract digit animation
logic into createDigitCharFunction for cleaner code.

Leading zeros now stay hidden until the wheel rotates past the backside,
and zeros remain hidden when counting down since they become leading
zeros.

REDMINE-21218
@tf tf added this to the v17.2 milestone Jan 30, 2026
tf added 2 commits January 30, 2026 16:00
The minus sign now appears when the displayed value is actually
negative. For integers, this is at -1; for 1 decimal place, at -0.1.
Previously the minus was hidden until -1 regardless of decimal places.

REDMINE-21218
Decimal values like 0.7 were displayed incorrectly because dividing
by 0.1 produces 6.999... instead of 7. Multiply by integer (10, 100)
instead of dividing by fraction (0.1, 0.01) since integer multiplication
is exact.

REDMINE-21218
@tf tf merged commit ae7a855 into codevise:master Jan 30, 2026
18 checks passed
@tf tf deleted the wheel-fixes branch January 30, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant