mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-17 13:03:48 -07:00
animation: don't immediately disconnect active vars during tick (#9272)
This commit is contained in:
committed by
GitHub
parent
d11d069715
commit
5b43c106bd
@@ -43,7 +43,7 @@ CHyprAnimationManager::CHyprAnimationManager() {
|
||||
template <Animable VarType>
|
||||
static void updateVariable(CAnimatedVariable<VarType>& av, const float POINTY, bool warp = false) {
|
||||
if (warp || av.value() == av.goal()) {
|
||||
av.warp();
|
||||
av.warp(true, false);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ static void updateVariable(CAnimatedVariable<VarType>& av, const float POINTY, b
|
||||
|
||||
static void updateColorVariable(CAnimatedVariable<CHyprColor>& av, const float POINTY, bool warp) {
|
||||
if (warp || av.value() == av.goal()) {
|
||||
av.warp();
|
||||
av.warp(true, false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user