Merge pull request #600 from SVG-Edit/issues/262_1
commit
83632b65d9
|
@ -877,7 +877,10 @@ export const mouseUpEvent = function (evt) {
|
||||||
if (eventContext_.getCurrentMode() === 'path') {
|
if (eventContext_.getCurrentMode() === 'path') {
|
||||||
svgCanvas.pathActions.toEditMode(element);
|
svgCanvas.pathActions.toEditMode(element);
|
||||||
} else if (eventContext_.getCurConfig().selectNew) {
|
} else if (eventContext_.getCurConfig().selectNew) {
|
||||||
svgCanvas.setMode('select');
|
const modes = [ 'circle', 'ellipse', 'square', 'rect', 'fhpath', 'line', 'fhellipse', 'fhrect', 'star', 'polygon' ];
|
||||||
|
if ( modes.indexOf(eventContext_.getCurrentMode()) !== -1) {
|
||||||
|
svgCanvas.setMode('select');
|
||||||
|
}
|
||||||
svgCanvas.selectOnly([ element ], true);
|
svgCanvas.selectOnly([ element ], true);
|
||||||
}
|
}
|
||||||
// we create the insert command that is stored on the stack
|
// we create the insert command that is stored on the stack
|
||||||
|
|
Loading…
Reference in New Issue