From a786f0353ebf4a9c9395bd25b5e70aa27f3fc02b Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 26 Nov 2025 22:55:09 +0100 Subject: [PATCH] listview anims always run to end --- .../quickshell/ii/modules/common/Appearance.qml | 17 +++++++++++------ .../modules/common/widgets/StyledListView.qml | 1 + 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/common/Appearance.qml b/dots/.config/quickshell/ii/modules/common/Appearance.qml index d528e6bd5..9c5045014 100644 --- a/dots/.config/quickshell/ii/modules/common/Appearance.qml +++ b/dots/.config/quickshell/ii/modules/common/Appearance.qml @@ -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 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 }} } diff --git a/dots/.config/quickshell/ii/modules/common/widgets/StyledListView.qml b/dots/.config/quickshell/ii/modules/common/widgets/StyledListView.qml index 2db1f094a..26518cfb1 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/StyledListView.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/StyledListView.qml @@ -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