Skip to content

Commit 8b21873

Browse files
committed
fix(core): fix delay scale animation 0 value bug in animation set
1 parent 502a345 commit 8b21873

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dom/src/dom/animation/animation_set.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ void AnimationSet::Init() {
7878
}
7979
if (begin_animation_) {
8080
start_value_ = begin_animation_->GetStartValue();
81+
// 和Animation类似,AnimationSet这里current_value也应该用start_value初始化,
82+
// 否则0值会有问题,比如对延迟scale动画,初始0值会导致不显示。
83+
// 这样和Hippy2.0表现也一致。
84+
current_value_ = start_value_;
8185
delay_ = begin_animation_->GetDelay();
8286
}
8387
}

0 commit comments

Comments
 (0)