remove rounding

pull/8613/head
Ryan Di 4 months ago
parent 467a4a2a6a
commit 359a2f23ae

@ -12,7 +12,6 @@ import {
pointFromVector,
clamp,
isCloseTo,
round,
} from "../../math";
import type { TransformHandleType } from "./transformHandles";
import type {
@ -385,11 +384,6 @@ export const cropElement = (
!!widthAspectRatio,
);
crop.x = round(crop.x, 6);
crop.y = round(crop.y, 6);
crop.width = round(crop.width, 6);
crop.height = round(crop.height, 6);
// reset crop to null if we're back to orig size
if (
isCloseTo(crop.width, crop.naturalWidth) &&

Loading…
Cancel
Save