mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:45:58 +01:00
parent
4156b55cf9
commit
64c8ba2fb1
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue