diff options
author | andrewdkim <adkim414@gmail.com> | 2019-06-21 17:32:45 -0400 |
---|---|---|
committer | andrewdkim <adkim414@gmail.com> | 2019-06-21 17:32:45 -0400 |
commit | df5c4abc3acbf67db44384ef000c893c61270fcc (patch) | |
tree | 514e2a0c539c5b49f819ed4d0858bbb32072fd82 /src/client/views/nodes/Track.tsx | |
parent | 1fa8e6c102b41bf99b7af9d803b6060284afc8b7 (diff) |
tick marks
Diffstat (limited to 'src/client/views/nodes/Track.tsx')
-rw-r--r-- | src/client/views/nodes/Track.tsx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/client/views/nodes/Track.tsx b/src/client/views/nodes/Track.tsx index dab73ce06..d7ef68f70 100644 --- a/src/client/views/nodes/Track.tsx +++ b/src/client/views/nodes/Track.tsx @@ -303,11 +303,12 @@ export class Track extends React.Component<props> { // this.props.Document.keyframes = new List<List<Doc>>(); // } - let keys = Doc.allKeys(this.props.node); + // let keys = Doc.allKeys(this.props.node); + // return reaction(() => keys.map(key => FieldValue(this.props.node[key])), data => { + // console.log(data); + // }); - return reaction(() => keys.map(key => FieldValue(this.props.node[key])), data => { - console.log(data); - }); + this.props.node.currentBarX = this._currentBarX; } /** @@ -401,7 +402,10 @@ export class Track extends React.Component<props> { let inner = this._inner.current!; let left = inner.getBoundingClientRect().left; let offsetX = Math.round(e.clientX - left); - this._keyframes.push(<Keyframe position={offsetX} />); + this.props.node.currentBarX = offsetX; + this._keyframes.push(<Keyframe node={this.props.node}/>); + + } render() { |