aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-03-31 21:34:11 +0100
committerVaxry <[email protected]>2024-03-31 21:34:11 +0100
commit64c8ba2fb1977a055b9718c7c7cfb1740756d963 (patch)
tree1d67251f32823f05d4e5367f3a8d97d6c9160848
parent4156b55cf91a7cb90fd14582a1c5a9df5792933e (diff)
downloadHyprland-64c8ba2fb1977a055b9718c7c7cfb1740756d963.tar.gz
Hyprland-64c8ba2fb1977a055b9718c7c7cfb1740756d963.zip
avar: fix warp onEnd conditions
ref #5348
-rw-r--r--src/helpers/AnimatedVariable.hpp5
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: