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

master
JFH 2021-07-22 23:46:02 +02:00 committed by GitHub
commit 83632b65d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

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