You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/07/22 13:33:23 UTC
[incubator-echarts] branch optimize-style updated: timeline:
progress logic tweak.
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 <bm...@gmail.com>
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org