mirror of
https://github.com/hyprwm/hyprutils.git
synced 2025-01-27 17:39:49 +01:00
animation: don't fire update events if the avar is not being animated
This commit is contained in:
parent
3c895da64b
commit
5dd4f4a9f7
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ bool CBaseAnimatedVariable::ok() const {
|
|||
}
|
||||
|
||||
void CBaseAnimatedVariable::onUpdate() {
|
||||
if (m_fUpdateCallback)
|
||||
if (m_bIsBeingAnimated && m_fUpdateCallback)
|
||||
m_fUpdateCallback(m_pSelf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue