mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-08 21:45:58 +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;
|
||||
}
|
||||
|
||||
if (SPENT >= 1.f) {
|
||||
if (SPENT >= 1.f || av->m_fBegun == av->m_fGoal) {
|
||||
av->warp(false);
|
||||
break;
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ void CAnimationManager::tick() {
|
|||
break;
|
||||
}
|
||||
|
||||
if (SPENT >= 1.f) {
|
||||
if (SPENT >= 1.f || av->m_vBegun == av->m_vGoal) {
|
||||
av->warp(false);
|
||||
break;
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ void CAnimationManager::tick() {
|
|||
break;
|
||||
}
|
||||
|
||||
if (SPENT >= 1.f) {
|
||||
if (SPENT >= 1.f || av->m_cBegun == av->m_cGoal) {
|
||||
av->warp(false);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue