aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/Timeline.tsx
diff options
context:
space:
mode:
authorEleanor Eng <eleanor_eng@brown.edu>2019-04-20 16:30:37 -0400
committerEleanor Eng <eleanor_eng@brown.edu>2019-04-20 16:30:37 -0400
commit8788dfa4dc04219940b50c42bb99221f75f63eab (patch)
treeeb3fbd4cc6b9b4bc4a07c2780efd87329534841f /src/client/views/nodes/Timeline.tsx
parentfe562f1b6d61b02f5bdb073199af69cca56ef6cb (diff)
small change
Diffstat (limited to 'src/client/views/nodes/Timeline.tsx')
-rw-r--r--src/client/views/nodes/Timeline.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/views/nodes/Timeline.tsx b/src/client/views/nodes/Timeline.tsx
index a5d8e9657..ffdd34b78 100644
--- a/src/client/views/nodes/Timeline.tsx
+++ b/src/client/views/nodes/Timeline.tsx
@@ -23,11 +23,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);
@@ -46,7 +45,6 @@ export class Timeline extends React.Component {
this._currentBar = document.createElement("div");
this._currentBar.style.height = "100%";
this._currentBar.style.width = "5px";
- this._currentBar.style.left = "mouse.offsetX";
this._currentBar.style.backgroundColor = "white";
this._currentBar.style.transform = `translate(${mouse.offsetX}px)`;
this._inner.current.appendChild(this._currentBar);
@@ -59,10 +57,14 @@ export class Timeline extends React.Component {
}
}
+ createMark = (width: number) => {
+
+ }
private _keyFrames: KeyFrame[] = [];
componentDidMount() {
+
// let doc: Document;
// let keyFrame = new KeyFrame();
// this._keyFrames.push(keyFrame);