Fixed shape drawing on different aspect ratio images

This commit is contained in:
Mitchell McCaffrey
2020-04-29 11:04:33 +10:00
parent abf75f1566
commit 3e5a80e7d1
2 changed files with 29 additions and 8 deletions

View File

@@ -141,7 +141,8 @@ function MapDrawing({
data: getUpdatedShapeData(
prevShape.shapeType,
prevShape.data,
brushPosition
brushPosition,
gridSize
),
}));
}