aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/animationtimeline/TimelineOverview.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/animationtimeline/TimelineOverview.tsx')
-rw-r--r--src/client/views/animationtimeline/TimelineOverview.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/animationtimeline/TimelineOverview.tsx b/src/client/views/animationtimeline/TimelineOverview.tsx
index 4907a1ae1..caa97bb70 100644
--- a/src/client/views/animationtimeline/TimelineOverview.tsx
+++ b/src/client/views/animationtimeline/TimelineOverview.tsx
@@ -15,6 +15,7 @@ interface TimelineOverviewProps {
parent: Timeline;
changeCurrentBarX: (pixel: number) => void;
movePanX: (pixel: number) => any;
+ panelWidth: number;
}
@@ -125,8 +126,11 @@ export class TimelineOverview extends React.Component<TimelineOverviewProps>{
}
render() {
+
+ console.log("helo")
// calculates where everything should fall based on its size
let percentVisible = this.props.visibleLength / this.props.totalLength;
+ console.log(this.props.visibleLength)
let visibleBarWidth = percentVisible * this.overviewBarWidth;
let percentScrubberStart = this.props.currentBarX / this.props.totalLength;