fix: points not being normalized on single-elem resize (#5581)

This commit is contained in:
David Luzar
2022-08-16 21:51:43 +02:00
committed by GitHub
parent 27cf5ed17e
commit ad0c4c4c78
4 changed files with 45 additions and 4 deletions

View File

@ -198,6 +198,7 @@ const getAdjustedDimensions = (
element,
nextWidth,
nextHeight,
false,
);
const deltaX1 = (x1 - nextX1) / 2;
const deltaY1 = (y1 - nextY1) / 2;