Skip to content

Commit

Permalink
Fix center calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschot committed Jan 20, 2023
1 parent 28311b2 commit ccf977e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/boxel-motion/addon/models/orchestration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,9 @@ export class OrchestrationMatrix {
);
if (timing.anchor && maxLength) {
if (timing.anchor === 'center') {
startColumn =
Math.round(maxLength / 2) - (timing!.duration! * FPS + 1);
startColumn = Math.round(
maxLength / 2 - (timing!.duration! * FPS + 1) / 2
);
}

if (timing.anchor === 'end') {
Expand Down

0 comments on commit ccf977e

Please sign in to comment.