Avoid evaling to the same path
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
parent
d3aca3ca05
commit
23dd797dca
|
@ -729,7 +729,7 @@ export const snapToMid = (
|
|||
tolerance: number = 10,
|
||||
): Point => {
|
||||
const { x, y, width, height, angle } = element;
|
||||
const center = [x + width / 2, y + height / 2] as Point;
|
||||
const center = [x + width / 2 - 0.1, y + height / 2 - 0.1] as Point;
|
||||
const nonRotated = rotatePoint(p, center, -angle);
|
||||
|
||||
if (
|
||||
|
|
Loading…
Reference in New Issue