summaryrefslogtreecommitdiff
path: root/components/ISpringAnimation.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-08-23 11:59:36 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-08-23 11:59:59 +0800
commit04d4670f933431f5deaad4b2045baeccc2a4494e (patch)
tree0b3a065a7391c6df5a39e2c0bbd3324674743556 /components/ISpringAnimation.qml
parenta41ab9ad95b4f8e053af82741a45f747e77ff37a (diff)
fix: don't set priority to -1 when indexOf returns that
Diffstat (limited to 'components/ISpringAnimation.qml')
-rw-r--r--components/ISpringAnimation.qml6
1 files changed, 4 insertions, 2 deletions
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)
}