Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: circular progress no longer skips #2617

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

tvolk131
Copy link
Contributor

Currently on master, the loading spinners example has a bug where the position of the active indicator (the highlighted part) skips ~90 degrees at the end of every animation cycle. This bug was introduced here:

b193298#diff-7d796743c0a1456ea9a47db8034601be8cc1374f9846ea8a42368fbf0c8082d8

Since we're casting the number of circle rotations (radians / 2 PI) to a u32, we want to multiply by u32::MAX, not f64::MAX

@tvolk131 tvolk131 changed the title fix: circular progress no longer skips Circular progress no longer skips Sep 30, 2024
@tvolk131 tvolk131 changed the title Circular progress no longer skips fix: circular progress no longer skips Sep 30, 2024
@hecrj hecrj added this to the 0.14 milestone Oct 2, 2024
@hecrj hecrj added improvement An internal improvement documentation fix labels Oct 2, 2024
@hecrj hecrj merged commit e086c19 into iced-rs:master Oct 2, 2024
15 checks passed
@tvolk131 tvolk131 deleted the fix_circular_progress_skipping branch October 2, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation fix improvement An internal improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants