remove rounding
This commit is contained in:
parent
467a4a2a6a
commit
359a2f23ae
@ -12,7 +12,6 @@ import {
|
|||||||
pointFromVector,
|
pointFromVector,
|
||||||
clamp,
|
clamp,
|
||||||
isCloseTo,
|
isCloseTo,
|
||||||
round,
|
|
||||||
} from "../../math";
|
} from "../../math";
|
||||||
import type { TransformHandleType } from "./transformHandles";
|
import type { TransformHandleType } from "./transformHandles";
|
||||||
import type {
|
import type {
|
||||||
@ -385,11 +384,6 @@ export const cropElement = (
|
|||||||
!!widthAspectRatio,
|
!!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
|
// reset crop to null if we're back to orig size
|
||||||
if (
|
if (
|
||||||
isCloseTo(crop.width, crop.naturalWidth) &&
|
isCloseTo(crop.width, crop.naturalWidth) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user