Fixed and old and minor bug with CSS animations and properties.

This commit is contained in:
Martín Lucas Golini
2022-07-28 02:07:02 -03:00
parent 4227afce5b
commit 9ff71bc25a
2 changed files with 4 additions and 2 deletions

View File

@@ -422,6 +422,8 @@ void StyleSheetPropertyAnimation::setRunning( const bool& running ) {
void StyleSheetPropertyAnimation::setPaused( const bool& paused ) {
mPaused = paused;
if ( !mPaused )
onUpdate( Time::Zero );
}
void StyleSheetPropertyAnimation::notifyClose() {

View File

@@ -265,8 +265,6 @@ void UIStyle::onStateChange() {
mWidget->beginAttributesTransaction();
updateAnimations();
if ( nullptr != mDefinition && !mDefinition->getTransitionProperties().empty() ) {
mTransitions = TransitionDefinition::parseTransitionProperties(
mDefinition->getTransitionProperties() );
@@ -291,6 +289,8 @@ void UIStyle::onStateChange() {
}
}
updateAnimations();
mWidget->endAttributesTransaction();
}