mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-17 04:53:48 -07:00
@@ -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,7 +289,6 @@ class CAnimatedVariable : public CBaseAnimatedVariable {
|
||||
if (m_fUpdateCallback)
|
||||
m_fUpdateCallback(this);
|
||||
|
||||
if (endCallback)
|
||||
onAnimationEnd();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user