Skip to content

Commit

Permalink
Removing rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Jul 14, 2023
1 parent 10bfeac commit 5e649a0
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2090,14 +2090,14 @@ const defaultLayoutTransition = {
ease: [0.4, 0, 0.1, 1],
}

function roundAxis(axis: Axis): void {
axis.min = Math.round(axis.min)
axis.max = Math.round(axis.max)
}

function roundBox(box: Box): void {
roundAxis(box.x)
roundAxis(box.y)
// function roundAxis(axis: Axis): void {
// axis.min = Math.round(axis.min)
// axis.max = Math.round(axis.max)
// }

function roundBox(_box: Box): void {
// roundAxis(box.x)
// roundAxis(box.y)
}

function shouldAnimatePositionOnly(
Expand Down

0 comments on commit 5e649a0

Please sign in to comment.