aboutsummaryrefslogtreecommitdiff
path: root/src/animation
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-04-12 12:12:40 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-04-16 07:46:10 +0300
commitba933773ab1c2fb9e648676ed1797d4e67545da7 (patch)
tree4224fbb38eb17a93592b9eb271bc62528193d23e /src/animation
parentf1cca1a6ca0fb176e7681c5212ecd9f34678bdec (diff)
downloadniri-ba933773ab1c2fb9e648676ed1797d4e67545da7.tar.gz
niri-ba933773ab1c2fb9e648676ed1797d4e67545da7.tar.bz2
niri-ba933773ab1c2fb9e648676ed1797d4e67545da7.zip
animation: Fix restarted() Spring using old from/to
Diffstat (limited to 'src/animation')
-rw-r--r--src/animation/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animation/mod.rs b/src/animation/mod.rs
index 50dfc195..b6d6b552 100644
--- a/src/animation/mod.rs
+++ b/src/animation/mod.rs
@@ -123,8 +123,8 @@ impl Animation {
),
Kind::Spring(spring) => {
let spring = Spring {
- from: self.from,
- to: self.to,
+ from,
+ to,
initial_velocity: self.initial_velocity,
params: spring.params,
};