Skip to content

Commit 864c085

Browse files
fix: fix the issue of not able to represent dot in the svg canvas
1 parent 4e1e8de commit 864c085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useSvgCapture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const useSvgCapture = () => {
1818
const { locationX, locationY } = e.nativeEvent;
1919
handleSetLowestPoints(locationX, locationY);
2020
setPaths((prev) => {
21-
return [[locationX, locationY], ...prev];
21+
return [[locationX, locationY, locationX + 1, locationY + 1], ...prev];
2222
});
2323
}, []);
2424

0 commit comments

Comments
 (0)