mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 14:17:30 +09:00
Bug 1264125: Queue transitioncancel when animation status is idle
Issue #55
This commit is contained in:
parent
e30e72ff31
commit
ffa8225e06
1 changed files with 45 additions and 31 deletions
|
|
@ -226,6 +226,20 @@ CSSTransition::QueueEvents()
|
||||||
}
|
}
|
||||||
|
|
||||||
AutoTArray<TransitionEventParams, 3> events;
|
AutoTArray<TransitionEventParams, 3> events;
|
||||||
|
|
||||||
|
// Handle cancel events firts
|
||||||
|
if (mPreviousTransitionPhase != TransitionPhase::Idle &&
|
||||||
|
currentPhase == TransitionPhase::Idle) {
|
||||||
|
// FIXME: bug 1264125: We will need to get active time when cancelling
|
||||||
|
// the transition.
|
||||||
|
StickyTimeDuration activeTime(0);
|
||||||
|
TimeStamp activeTimeStamp = ElapsedTimeToTimeStamp(activeTime);
|
||||||
|
events.AppendElement(TransitionEventParams{ eTransitionCancel,
|
||||||
|
activeTime,
|
||||||
|
activeTimeStamp });
|
||||||
|
}
|
||||||
|
|
||||||
|
// All other events
|
||||||
switch (mPreviousTransitionPhase) {
|
switch (mPreviousTransitionPhase) {
|
||||||
case TransitionPhase::Idle:
|
case TransitionPhase::Idle:
|
||||||
if (currentPhase == TransitionPhase::Pending ||
|
if (currentPhase == TransitionPhase::Pending ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue