Skip to content

Commit

Permalink
Allow to increment position of vertices of collision masks by 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
4ian authored Dec 12, 2023
1 parent eb4708c commit 57d1241
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const VerticeRow = ({
}
value={roundTo(verticeX, VERTEX_COORDINATE_PRECISION).toString()}
type="number"
step={0.5}
id="vertice-x"
onChange={value => {
const valueAsNumber = parseFloat(value);
Expand All @@ -73,6 +74,7 @@ const VerticeRow = ({
}
value={roundTo(verticeY, VERTEX_COORDINATE_PRECISION).toString()}
type="number"
step={0.5}
id="vertice-y"
onChange={value => {
const valueAsNumber = parseFloat(value);
Expand Down

0 comments on commit 57d1241

Please sign in to comment.