Apply various fixes and cleanup to spinner logic #25143
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This takes a good portion of #24999 which can be immediately merged and adds a bit of clean-up on top.
Of note, the majority of this is @smoogipoo's work. I'll add notes for the changes I've made on top:
0bb95cf Fix incorrect initial rotation transfer value
Should have been removed as part of #24360. As discussed on discord
10bab61 Tidy up
lastAngle
usage and add assertion of maximum deltaAs a precursor to an attempt at refactoring the
SpinnerSpinHistory
change, I want to assert the maximum input delta to the equation. I also found thatlastAngle
was being updated in the normalisation logic when it didn't need to be.04af46b Change
SpinFramesGenerator
to take degrees as inputWe use angles in most other places so this feels more natural to work with.
I've also added
Ignore
rules to some tests which are still valuable for working forward, but will fail on the current implementation of spinner rotation handling.