wip
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user