moving grouop
This commit is contained in:
@@ -295,6 +295,14 @@ const EditorCanvas = ({ catalogSize }: EditorCanvasProps) => {
|
||||
}
|
||||
|
||||
updateActiveGuides(snapped.activeGuideIds);
|
||||
|
||||
// گروه فقط باکس انتخاب را درگ میکند؛ اعضا با مختصات مطلق جدا رسم میشوند — در حین drag باید استور همگام شود
|
||||
if (node.name() === "group-container") {
|
||||
handleObjectUpdate(node.id(), {
|
||||
x: snapped.position.x,
|
||||
y: snapped.position.y,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const handleDragEnd = () => {
|
||||
|
||||
Reference in New Issue
Block a user