auto save fix
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-06-20 12:59:39 +03:30
parent e93ab38b05
commit b13a46ec65
4 changed files with 15 additions and 19 deletions
@@ -60,11 +60,7 @@ const TriangleShape = ({ obj, isSelected, onSelect, onUpdate, draggable }: Shape
}
}}
onDragMove={(e) => {
const node = e.target;
onUpdate(obj.id, {
x: node.x() - (obj.width || 100) / 2,
y: node.y() - (obj.height || 100) / 2,
});
e.target.getLayer()?.batchDraw();
}}
onDragEnd={(e) => {
const node = e.target;