refactor(bg): set scaled gap to 1 if equals 0 closes #2083

This commit is contained in:
moklick
2022-05-23 16:32:11 +02:00
parent 022e29561c
commit 78b5077652
2 changed files with 20 additions and 22 deletions
@@ -31,7 +31,7 @@ const Background: FC<BackgroundProps> = ({
setPatternId(`pattern-${index}`);
}, []);
const scaledGap = gap * tScale;
const scaledGap = gap * tScale || 1;
const xOffset = tX % scaledGap;
const yOffset = tY % scaledGap;