aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package-lock.json2
-rw-r--r--src/client/views/animationtimeline/Timeline.tsx1
-rw-r--r--src/client/views/animationtimeline/Track.tsx2
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;