summaryrefslogtreecommitdiff
path: root/src/components/timeline
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/timeline')
-rw-r--r--src/components/timeline/TimelineControlsComponent.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/timeline/TimelineControlsComponent.js b/src/components/timeline/TimelineControlsComponent.js
index 3f37c3bc..2e093583 100644
--- a/src/components/timeline/TimelineControlsComponent.js
+++ b/src/components/timeline/TimelineControlsComponent.js
@@ -5,10 +5,10 @@ function getXPercentage(tick, maxTick) {
if (maxTick === 0) {
return "0%";
} else if (tick > maxTick) {
- return "100%";
+ return ((maxTick / (maxTick + 1)) * 100) + "%";
}
- return (tick / maxTick) + "%";
+ return ((tick / (maxTick + 1)) * 100) + "%";
}
const TimelineControlsComponent = ({currentTick, lastSimulatedTick, sectionTicks}) => (