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
+2 -2
View File
@@ -61,8 +61,8 @@ function MapFog({
return getBrushPositionForTool(
map,
getRelativePointerPositionNormalized(mapImage),
toolId,
toolSettings,
map.snapToGrid && toolSettings.type === "polygon",
toolSettings.useEdgeSnapping,
gridSize,
shapes
);