fix: resize bug

This commit is contained in:
hufeixiong
2021-07-26 14:05:23 +08:00
parent 7328374b1f
commit 8a178c82f0
8 changed files with 116 additions and 128 deletions

View File

@@ -73,8 +73,7 @@ function Blocks(props: PropsWithChildren<BlockProps>) {
props.data.left,
props.data.height,
props.data.width,
props.data.fixed,
props.data.rotate.value
props.data.fixed
);
setPreviewState({ top, left, width, height });
@@ -94,7 +93,6 @@ function Blocks(props: PropsWithChildren<BlockProps>) {
props.data.top,
props.data.width,
props.data.fixed,
props.data.rotate,
]);
const animatecss = useMemo(() => {