From df5c4abc3acbf67db44384ef000c893c61270fcc Mon Sep 17 00:00:00 2001
From: andrewdkim <adkim414@gmail.com>
Date: Fri, 21 Jun 2019 17:32:45 -0400
Subject: tick marks

---
 src/client/views/nodes/Track.tsx | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

(limited to 'src/client/views/nodes/Track.tsx')

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() {
-- 
cgit v1.2.3-70-g09d2

