mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
Fixed and old and minor bug with CSS animations and properties.
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user