mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 21:45:59 +01:00
animationmgr: warp on equal start and goal
This commit is contained in:
parent
0e31eaa157
commit
807b52b019
1 changed files with 3 additions and 3 deletions
|
@ -111,7 +111,7 @@ void CAnimationManager::tick() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SPENT >= 1.f) {
|
if (SPENT >= 1.f || av->m_fBegun == av->m_fGoal) {
|
||||||
av->warp(false);
|
av->warp(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,7 @@ void CAnimationManager::tick() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SPENT >= 1.f) {
|
if (SPENT >= 1.f || av->m_vBegun == av->m_vGoal) {
|
||||||
av->warp(false);
|
av->warp(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,7 @@ void CAnimationManager::tick() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SPENT >= 1.f) {
|
if (SPENT >= 1.f || av->m_cBegun == av->m_cGoal) {
|
||||||
av->warp(false);
|
av->warp(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue