Avoid evaling to the same path

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs 2024-07-19 18:40:26 +02:00
parent d3aca3ca05
commit 23dd797dca
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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 (