listview anims always run to end

This commit is contained in:
end-4
2025-11-26 22:55:09 +01:00
parent 9ba8723a5d
commit a786f0353e
2 changed files with 12 additions and 6 deletions
@@ -278,6 +278,7 @@ Singleton {
property int velocity: 650
property Component numberAnimation: Component {
NumberAnimation {
alwaysRunToEnd: true
duration: root.animation.elementMoveEnter.duration
easing.type: root.animation.elementMoveEnter.type
easing.bezierCurve: root.animation.elementMoveEnter.bezierCurve
@@ -292,6 +293,7 @@ Singleton {
property int velocity: 650
property Component numberAnimation: Component {
NumberAnimation {
alwaysRunToEnd: true
duration: root.animation.elementMoveExit.duration
easing.type: root.animation.elementMoveExit.type
easing.bezierCurve: root.animation.elementMoveExit.bezierCurve
@@ -310,9 +312,10 @@ Singleton {
easing.bezierCurve: root.animation.elementMoveFast.bezierCurve
}}
property Component numberAnimation: Component { NumberAnimation {
duration: root.animation.elementMoveFast.duration
easing.type: root.animation.elementMoveFast.type
easing.bezierCurve: root.animation.elementMoveFast.bezierCurve
alwaysRunToEnd: true
duration: root.animation.elementMoveFast.duration
easing.type: root.animation.elementMoveFast.type
easing.bezierCurve: root.animation.elementMoveFast.bezierCurve
}}
}
@@ -323,6 +326,7 @@ Singleton {
property int velocity: 650
property Component numberAnimation: Component {
NumberAnimation {
alwaysRunToEnd: true
duration: root.animation.elementResize.duration
easing.type: root.animation.elementResize.type
easing.bezierCurve: root.animation.elementResize.bezierCurve
@@ -336,9 +340,10 @@ Singleton {
property list<real> bezierCurve: animationCurves.expressiveDefaultSpatial
property int velocity: 850
property Component numberAnimation: Component { NumberAnimation {
duration: root.animation.clickBounce.duration
easing.type: root.animation.clickBounce.type
easing.bezierCurve: root.animation.clickBounce.bezierCurve
alwaysRunToEnd: true
duration: root.animation.clickBounce.duration
easing.type: root.animation.clickBounce.type
easing.bezierCurve: root.animation.clickBounce.bezierCurve
}}
}
@@ -54,6 +54,7 @@ ListView {
Behavior on contentY {
NumberAnimation {
id: scrollAnim
alwaysRunToEnd: true
duration: Appearance.animation.scroll.duration
easing.type: Appearance.animation.scroll.type
easing.bezierCurve: Appearance.animation.scroll.bezierCurve