Skip to content

Implement spring damper animation#11030

Draft
Murmele wants to merge 25 commits intoslint-ui:masterfrom
Murmele:mm/flickable-scrolling-animation-spring-damper
Draft

Implement spring damper animation#11030
Murmele wants to merge 25 commits intoslint-ui:masterfrom
Murmele:mm/flickable-scrolling-animation-spring-damper

Conversation

@Murmele
Copy link
Contributor

@Murmele Murmele commented Mar 18, 2026

  • If possible, the change is auto-tested
  • If the change is noteworthy, the commit message should contain ChangeLog: ...

Followup of #10845

Bildschirmaufzeichnung.vom.2026-03-18.07-51-08.mp4

Murmele added 25 commits March 9, 2026 08:27
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
fn simulation(self, start_value: f32, limit_value: f32) -> Self::Output;
}

#[cfg(test)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants