#262 Shape selection not working as expected with the rectangle / circle tool active

This commit is contained in:
agriyadev5
2021-07-13 15:46:57 +05:30
parent aa296a731b
commit f7fc9bf245

View File

@@ -877,6 +877,7 @@ export const mouseUpEvent = function (evt) {
if (eventContext_.getCurrentMode() === 'path') {
svgCanvas.pathActions.toEditMode(element);
} else if (eventContext_.getCurConfig().selectNew) {
svgCanvas.setMode('select');
svgCanvas.selectOnly([ element ], true);
}
// we create the insert command that is stored on the stack