Skip to content

Commit

Permalink
Fix tail transforms when moving right, down, and up.
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanvugt committed Jul 5, 2021
1 parent fb74c09 commit 586f7ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/grid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ function getTailTransform(direction, viewBox) {
const halfY = viewBox.height / 2;
switch (direction) {
case "right":
return `rotate(180 ${halfX} ${halfY})`;
return `scale(-1,1) translate(-100,0)`;
case "down":
return `rotate(-90 ${halfX} ${halfY})`;
return `scale(-1,1) translate(-100,0) rotate(-90 ${halfX} ${halfY})`;
case "up":
return `rotate(90 ${halfX} ${halfY})`;
return `scale(-1,1) translate(-100,0) rotate(90 ${halfX} ${halfY})`;
default:
return "";
}
Expand Down

0 comments on commit 586f7ab

Please sign in to comment.