diff options
author | Vaxry <[email protected]> | 2024-03-31 21:34:11 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-03-31 21:34:11 +0100 |
commit | 64c8ba2fb1977a055b9718c7c7cfb1740756d963 (patch) | |
tree | 1d67251f32823f05d4e5367f3a8d97d6c9160848 /src/helpers/AnimatedVariable.hpp | |
parent | 4156b55cf91a7cb90fd14582a1c5a9df5792933e (diff) | |
download | Hyprland-64c8ba2fb1977a055b9718c7c7cfb1740756d963.tar.gz Hyprland-64c8ba2fb1977a055b9718c7c7cfb1740756d963.zip |
avar: fix warp onEnd conditions
ref #5348
Diffstat (limited to 'src/helpers/AnimatedVariable.hpp')
-rw-r--r-- | src/helpers/AnimatedVariable.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/helpers/AnimatedVariable.hpp b/src/helpers/AnimatedVariable.hpp index 82e30892..2add41be 100644 --- a/src/helpers/AnimatedVariable.hpp +++ b/src/helpers/AnimatedVariable.hpp @@ -279,7 +279,7 @@ class CAnimatedVariable : public CBaseAnimatedVariable { } void warp(bool endCallback = true) override { - if (m_Value == m_Goal) + if (!m_bIsBeingAnimated) return; m_Value = m_Goal; @@ -289,8 +289,7 @@ class CAnimatedVariable : public CBaseAnimatedVariable { if (m_fUpdateCallback) m_fUpdateCallback(this); - if (endCallback) - onAnimationEnd(); + onAnimationEnd(); } private: |