mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Use a temporary in Animation::Tick()
This commit is contained in:
parent
e0714405a3
commit
685ae236c8
1 changed files with 4 additions and 2 deletions
|
|
@ -589,8 +589,10 @@ Animation::Tick()
|
|||
// during the *previous* tick of the refresh driver, it can still be
|
||||
// ahead of the *current* timeline time when we are using the
|
||||
// vsync timer so we need to clamp it to the timeline time.
|
||||
mPendingReadyTime.SetValue(std::min(mTimeline->GetCurrentTime().Value(),
|
||||
mPendingReadyTime.Value()));
|
||||
TimeDuration currentTime = mTimeline->GetCurrentTime().Value();
|
||||
if (currentTime < mPendingReadyTime.Value()) {
|
||||
mPendingReadyTime.SetValue(currentTime);
|
||||
}
|
||||
FinishPendingAt(mPendingReadyTime.Value());
|
||||
mPendingReadyTime.SetNull();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue