refactor(bg): set scaled gap to 1 if equals 0 closes #2083
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user