diff options
author | Vaxry <[email protected]> | 2024-03-31 21:43:08 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-03-31 21:43:08 +0100 |
commit | 9e8f0518961041b60e6c4843f545734e833d5355 (patch) | |
tree | a157e8e9133a306808c4fec509f33166e64bd7d4 | |
parent | 64c8ba2fb1977a055b9718c7c7cfb1740756d963 (diff) | |
download | Hyprland-9e8f0518961041b60e6c4843f545734e833d5355.tar.gz Hyprland-9e8f0518961041b60e6c4843f545734e833d5355.zip |
avar: minor fixes
-rw-r--r-- | src/helpers/AnimatedVariable.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/helpers/AnimatedVariable.hpp b/src/helpers/AnimatedVariable.hpp index 2add41be..85ffb9ab 100644 --- a/src/helpers/AnimatedVariable.hpp +++ b/src/helpers/AnimatedVariable.hpp @@ -274,7 +274,8 @@ class CAnimatedVariable : public CBaseAnimatedVariable { // Sets the actual value and goal void setValueAndWarp(const VarType& v) { - m_Goal = v; + m_Goal = v; + m_bIsBeingAnimated = true; warp(); } @@ -289,7 +290,8 @@ class CAnimatedVariable : public CBaseAnimatedVariable { if (m_fUpdateCallback) m_fUpdateCallback(this); - onAnimationEnd(); + if (endCallback) + onAnimationEnd(); } private: |