Refactored getBrushPosition helper

This commit is contained in:
Mitchell McCaffrey
2020-11-03 16:20:51 +11:00
parent 251a89eaf4
commit 9c1960ba71
4 changed files with 8 additions and 19 deletions

View File

@@ -55,8 +55,8 @@ function MapDrawing({
return getBrushPositionForTool(
map,
getRelativePointerPositionNormalized(mapImage),
toolId,
toolSettings,
map.snapToGrid && isShape,
false,
gridSize,
shapes
);