diff options
Diffstat (limited to 'src/client/views/nodes/Timeline.tsx')
| -rw-r--r-- | src/client/views/nodes/Timeline.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/views/nodes/Timeline.tsx b/src/client/views/nodes/Timeline.tsx index c6aa0b146..634a16573 100644 --- a/src/client/views/nodes/Timeline.tsx +++ b/src/client/views/nodes/Timeline.tsx @@ -22,11 +22,10 @@ export class Timeline extends React.Component { @action onStop = (e: React.MouseEvent) => { this._isRecording = false; - if (this._inner.current) { + if (this._inner.current) { //if you comment this section out it works as before... this._newBar = document.createElement("div"); this._newBar.style.height = "100%"; this._newBar.style.width = "5px"; - this._newBar.style.left = this._currentBar.style.left; this._newBar.style.backgroundColor = "yellow"; this._newBar.style.transform = this._currentBar.style.transform; this._inner.current.appendChild(this._newBar); @@ -45,6 +44,9 @@ export class Timeline extends React.Component { } } + createMark = (width: number) => { + + } private _keyFrames: KeyFrame[] = []; @@ -60,6 +62,7 @@ export class Timeline extends React.Component { } } + componentDidMount() { this.createBar(5); // let doc: Document; |
