mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-15 20:13:49 -07:00
avar: minor fixes
This commit is contained in:
@@ -274,7 +274,8 @@ class CAnimatedVariable : public CBaseAnimatedVariable {
|
|||||||
|
|
||||||
// Sets the actual value and goal
|
// Sets the actual value and goal
|
||||||
void setValueAndWarp(const VarType& v) {
|
void setValueAndWarp(const VarType& v) {
|
||||||
m_Goal = v;
|
m_Goal = v;
|
||||||
|
m_bIsBeingAnimated = true;
|
||||||
warp();
|
warp();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -289,7 +290,8 @@ class CAnimatedVariable : public CBaseAnimatedVariable {
|
|||||||
if (m_fUpdateCallback)
|
if (m_fUpdateCallback)
|
||||||
m_fUpdateCallback(this);
|
m_fUpdateCallback(this);
|
||||||
|
|
||||||
onAnimationEnd();
|
if (endCallback)
|
||||||
|
onAnimationEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user