diff --git a/frameworks/components/ui_label.cpp b/frameworks/components/ui_label.cpp index a29d9c784347af6f7cb764a51b724bac5541cff2..2649cf1cfd2b6832df90e935dbb38110dc6a2e28 100755 --- a/frameworks/components/ui_label.cpp +++ b/frameworks/components/ui_label.cpp @@ -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(time * speed_) / 1000) + decimal_;