Merge pull request #600 from SVG-Edit/issues/262_1

This commit is contained in:
JFH
2021-07-22 23:46:02 +02:00
committed by GitHub

View File

@@ -877,7 +877,10 @@ export const mouseUpEvent = function (evt) {
if (eventContext_.getCurrentMode() === 'path') {
svgCanvas.pathActions.toEditMode(element);
} 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);
}
// we create the insert command that is stored on the stack