提交 5022ffeb 编写于 作者: O openharmony_ci 提交者: Gitee

!270 解决UILabel滚动刷新时文字不显示问题

Merge pull request !270 from wangtiantian/label_m
......@@ -70,6 +70,9 @@ public:
preRunTime_ = curTime;
return;
}
if (curTime == preRunTime_) {
return;
}
uint32_t time = (curTime > preRunTime_) ? (curTime - preRunTime_) : (UINT32_MAX - preRunTime_ + curTime);
// 1000: 1000 milliseconds is 1 second
float floatStep = (static_cast<float>(time * speed_) / 1000) + decimal_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册