Implement spring damper animation#11030
Draft
Murmele wants to merge 25 commits intoslint-ui:masterfrom
Draft
Conversation
Reason: The current animation system supports only time based limits which are not suitable for scroll animations. Because of that a new set of animations are introduced with custom limit ChangeLog: Improve Flickable/Listview scroll animation for touch screens Fixes: slint-ui#9652
Reason: When one axis was out of bounds, both axes got checked and re set which leads to an abort of the animation even the point is within the limits
Reason: So no extra enum is required
…er does not work yet, because going beyond the borders does not work yet
…mplex calculations Description: Introducing a new dependency like uom is not desired
Reason: because for spring damper animation it goes shortly out of bounds and returns
tronical
reviewed
Mar 18, 2026
| fn simulation(self, start_value: f32, limit_value: f32) -> Self::Output; | ||
| } | ||
|
|
||
| #[cfg(test)] |
Member
There was a problem hiding this comment.
As a more general comment and early feedback: I suggest to move this data structure into the test module further below, as it's only used in there. That reduces the amount of cfgs :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ChangeLog: ...Followup of #10845
Bildschirmaufzeichnung.vom.2026-03-18.07-51-08.mp4