From 04d4670f933431f5deaad4b2045baeccc2a4494e Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 23 Aug 2026 11:59:36 +0800 Subject: fix: don't set priority to -1 when indexOf returns that --- components/ISpringAnimation.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'components/ISpringAnimation.qml') diff --git a/components/ISpringAnimation.qml b/components/ISpringAnimation.qml index 099cab4..0d13b59 100644 --- a/components/ISpringAnimation.qml +++ b/components/ISpringAnimation.qml @@ -2,6 +2,8 @@ import QtQuick import qs.config SpringAnimation { - spring: General.springAnimationSpring - damping: General.springAnimationDamping + property real speed: 1.0 + + spring: General.springAnimationSpring * (speed * speed) + damping: General.springAnimationDamping * (speed) } -- cgit v1.2.3