8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18e7c84 commit 5509ee6Copy full SHA for 5509ee6
src/components/shapes/draw_newshape/newshapes.js
@@ -84,10 +84,10 @@ function newShapes(outlines, dragOptions) {
84
case 'line':
85
case 'rect':
86
case 'circle':
87
- modifyItem('x0', afterEdit.x0);
88
- modifyItem('x1', afterEdit.x1);
89
- modifyItem('y0', afterEdit.y0);
90
- modifyItem('y1', afterEdit.y1);
+ modifyItem('x0', afterEdit.x0 - (beforeEdit.x0shift || 0));
+ modifyItem('x1', afterEdit.x1 - (beforeEdit.x1shift || 0));
+ modifyItem('y0', afterEdit.y0 - (beforeEdit.y0shift || 0));
+ modifyItem('y1', afterEdit.y1 - (beforeEdit.y1shift || 0));
91
break;
92
93
case 'path':
0 commit comments