diff options
author | andrewdkim <adkim414@gmail.com> | 2020-02-09 14:51:26 -0500 |
---|---|---|
committer | andrewdkim <adkim414@gmail.com> | 2020-02-09 14:51:26 -0500 |
commit | 7d2e05ca34d28d49d9272668091bfce7e6b47f22 (patch) | |
tree | e087ebfe9f1c0968e007d44a86dfe3e19e514f90 | |
parent | 4eb94980caad8fb98863e140189a9f77b67cf354 (diff) |
fixed
-rw-r--r-- | src/client/views/animationtimeline/TimelineOverview.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/animationtimeline/TimelineOverview.tsx b/src/client/views/animationtimeline/TimelineOverview.tsx index 4d1d1cf88..66f6a9482 100644 --- a/src/client/views/animationtimeline/TimelineOverview.tsx +++ b/src/client/views/animationtimeline/TimelineOverview.tsx @@ -158,9 +158,9 @@ export class TimelineOverview extends React.Component<TimelineOverviewProps>{ </div> ] : [ <div className="timeline-play-bar" style={{ width: this.overviewBarWidth }}> - <div ref={this._scrubberRef} className="timeline-play-head" style={{ left: `${(this.props.currentBarX / this.props.totalLength) * 294}px` }} onPointerDown={this.onScrubberDown}></div> + <div ref={this._scrubberRef} className="timeline-play-head" style={{ left: `${(this.props.currentBarX / this.props.totalLength) * this.overviewBarWidth}px` }} onPointerDown={this.onScrubberDown}></div> </div>, - <div className="timeline-play-tail" style={{ width: `${(this.props.currentBarX / this.props.totalLength) * 294}px` }}></div> + <div className="timeline-play-tail" style={{ width: `${(this.props.currentBarX / this.props.totalLength) * this.overviewBarWidth}px` }}></div> ]; return ( <div className="timeline-flex"> |