This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch optimize-style
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git


The following commit(s) were added to refs/heads/optimize-style by this push:
     new 45a7ef3  timeline: progress logic tweak.
45a7ef3 is described below

commit 45a7ef347fc0a9709d699367cc5ea86c18452d48
Author: pissang <[email protected]>
AuthorDate: Wed Jul 22 21:33:05 2020 +0800

    timeline: progress logic tweak.
---
 src/component/timeline/SliderTimelineView.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/component/timeline/SliderTimelineView.ts 
b/src/component/timeline/SliderTimelineView.ts
index f12febd..d8b8728 100644
--- a/src/component/timeline/SliderTimelineView.ts
+++ b/src/component/timeline/SliderTimelineView.ts
@@ -702,9 +702,9 @@ class SliderTimelineView extends TimelineView {
 
         for (let i = 0; i < len; i++) {
             tickSymbols && tickSymbols[i]
-                && tickSymbols[i].toggleState('progress', i <= currentIndex);
+                && tickSymbols[i].toggleState('progress', i < currentIndex);
             tickLabels && tickLabels[i]
-                && tickLabels[i].toggleState('progress', i <= currentIndex);
+                && tickLabels[i].toggleState('progress', i < currentIndex);
         }
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to