diff options
author | andrewdkim <adkim414@gmail.com> | 2020-02-10 20:30:59 -0500 |
---|---|---|
committer | andrewdkim <adkim414@gmail.com> | 2020-02-10 20:30:59 -0500 |
commit | d9990be832185b31375aaeb458c21addb389c32e (patch) | |
tree | 6226011bbf52bc6ec235a9b81197d407cf71206d | |
parent | 9953433d0019f53474f3a50fe96f04a1e7af543f (diff) |
fixed time
-rw-r--r-- | package-lock.json | 2 | ||||
-rw-r--r-- | src/client/views/animationtimeline/Timeline.tsx | 1 | ||||
-rw-r--r-- | src/client/views/animationtimeline/Track.tsx | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/package-lock.json b/package-lock.json index 5684789c1..0ae430be9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17991,7 +17991,7 @@ }, "wrap-ansi": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "resolved": "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "requires": { "string-width": "^1.0.1", diff --git a/src/client/views/animationtimeline/Timeline.tsx b/src/client/views/animationtimeline/Timeline.tsx index 914c19b53..d27990bd6 100644 --- a/src/client/views/animationtimeline/Timeline.tsx +++ b/src/client/views/animationtimeline/Timeline.tsx @@ -574,6 +574,7 @@ export class Timeline extends React.Component<FieldViewProps> { //TODO: remove undefineds and duplicates } }); + console.log(longestTime); return longestTime; } diff --git a/src/client/views/animationtimeline/Track.tsx b/src/client/views/animationtimeline/Track.tsx index 69e65fbcf..705cc33a2 100644 --- a/src/client/views/animationtimeline/Track.tsx +++ b/src/client/views/animationtimeline/Track.tsx @@ -85,7 +85,7 @@ export class Track extends React.Component<IProps> { let lastTime:number = 0; let lastRegion:(Doc | undefined); DocListCast(this.regions).forEach(region => { - const time = NumCast(region.time); + const time = NumCast(region.position); if (lastTime <= time) { lastTime = time; lastRegion = region; |