fix(projectFunc): don't scale grid size #261

This commit is contained in:
moklick
2020-05-31 12:12:02 +02:00
parent 2000b58add
commit 6530e4041f
+2 -5
View File
@@ -62,12 +62,9 @@ export const pointToRendererPoint = (
}; };
if (snapToGrid) { if (snapToGrid) {
const transformedGridSizeX = snapX * tScale;
const transformedGridSizeY = snapY * tScale;
return { return {
x: transformedGridSizeX * Math.round(position.x / transformedGridSizeX), x: snapX * Math.round(position.x / snapX),
y: transformedGridSizeY * Math.round(position.y / transformedGridSizeY), y: snapY * Math.round(position.y / snapY),
}; };
} }