This commit is contained in:
2025-03-21 17:48:08 +08:00
parent 9cd93e60df
commit 7a4578c16d
10 changed files with 299 additions and 87 deletions

View File

@@ -40,10 +40,7 @@ export default function DraggablePanel(props: DraggablePanelType) {
const { width, height } = rect;
const x = nearestMultiple(node.offsetLeft + event.delta.x);
const y = nearestMultiple(node.offsetTop + event.delta.y);
PreviewStore.changePreviewX(0);
PreviewStore.changePreviewY(0);
PreviewStore.changePreviewWidth(0);
PreviewStore.changePreviewHeight(0);
PreviewStore.clearPreview();
ComponentStore.changeComponent({
id: event?.active?.data?.current?.id,
component: event?.active?.data?.current?.component,