fix some more issues in selectjs pixel alignment

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2022-12-07 23:09:41 -03:00
parent 548aa05001
commit 3701eb110b

View file

@ -217,8 +217,8 @@ const selectTransformTool = () =>
// Update position
if (state.moving) {
state.selected.x = x - state.moving.offset.x;
state.selected.y = y - state.moving.offset.y;
state.selected.x = Math.round(x - state.moving.offset.x);
state.selected.y = Math.round(y - state.moving.offset.y);
state.selected.updateOriginal();
}