Skip to content

Commit

Permalink
Allow to increment position of points of sprites by 0.5 in the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
4ian authored Dec 12, 2023
1 parent 57d1241 commit 94b8c31
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const PointRow = ({ pointX, pointY, ...props }: Props) => {
}
value={roundTo(pointX, POINT_COORDINATE_PRECISION).toString()}
type="number"
step={0.5}
id="point-x"
onChange={value => {
const valueAsNumber = parseFloat(value);
Expand Down Expand Up @@ -103,6 +104,7 @@ const PointRow = ({ pointX, pointY, ...props }: Props) => {
}
value={roundTo(pointY, POINT_COORDINATE_PRECISION).toString()}
type="number"
step={0.5}
id="point-y"
onChange={value => {
const valueAsNumber = parseFloat(value);
Expand Down

0 comments on commit 94b8c31

Please sign in to comment.