aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/Timeline.tsx
diff options
context:
space:
mode:
authorandrewdkim <adkim414@gmail.com>2019-06-26 17:29:23 -0400
committerandrewdkim <adkim414@gmail.com>2019-06-26 17:29:23 -0400
commitbbeddd9a2084882cbf096b22574b848c5cbb674b (patch)
tree8259b69ce9fc11bee8a5dbbfe2181c8659e036de /src/client/views/nodes/Timeline.tsx
parent6cd71adb4b35e1afacae5b41d5ab2ac215a1826f (diff)
interpolation
Diffstat (limited to 'src/client/views/nodes/Timeline.tsx')
-rw-r--r--src/client/views/nodes/Timeline.tsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/client/views/nodes/Timeline.tsx b/src/client/views/nodes/Timeline.tsx
index a06ca43eb..fc3b8f454 100644
--- a/src/client/views/nodes/Timeline.tsx
+++ b/src/client/views/nodes/Timeline.tsx
@@ -136,7 +136,6 @@ export class Timeline extends CollectionSubView(Document){
let scrubberbox = this._scrubberbox.current!;
let offset = scrubberbox.scrollLeft + e.clientX - scrubberbox.getBoundingClientRect().left;
this._currentBarX = offset;
- ;
}
@action
@@ -221,13 +220,17 @@ export class Timeline extends CollectionSubView(Document){
</div>
<div className="info-container" ref ={this._infoContainer}>
<div className="scrubberbox" ref ={this._scrubberbox} onClick={this.onScrubberClick}>
- {this._ticks.map(element => {return <div className="tick" style={{transform:`translate(${element / 20}px)`, position:"absolute", pointerEvent:"none"}}> <p>{this.toTime(element)}</p></div>})}
+ {this._ticks.map(element => {
+ return <div className="tick" style={{transform:`translate(${element / 20}px)`, position:"absolute", pointerEvent:"none"}}> <p>{this.toTime(element)}</p></div>;
+ })}
</div>
<div className="scrubber" onPointerDown = {this.onScrubberDown} style={{transform:`translate(${this._currentBarX}px)`}}>
<div className="scrubberhead"></div>
</div>
<div className="trackbox" ref={this._trackbox} onPointerDown={this.onPanDown}>
- {this._nodes.map(doc => {return <Track node={(doc as any).value() as Doc} currentBarX = {this._currentBarX}/>;})}
+ {this._nodes.map(doc => {
+ return <Track node={(doc as any).value() as Doc} currentBarX = {this._currentBarX}/>;
+ })}
</div>
</div>
<div className="title-container" ref={this._titleContainer}>