diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 7cb9bb2c..920afee8 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -306,7 +306,8 @@ function SvgCanvas(c) } if (this.rubberBandBox == null) { - this.rubberBandBox = addSvgElementFromJson({ "element": "rect", + this.rubberBandBox = this.selectorParentGroup.appendChild( + addSvgElementFromJson({ "element": "rect", "attr": { "id": "selectorRubberBand", "fill": "blue", @@ -316,7 +317,7 @@ function SvgCanvas(c) "display": "none", "pointer-events": "none", } - }); + })); } return this.rubberBandBox; } @@ -451,11 +452,13 @@ function SvgCanvas(c) var bOneLine = false; for (i=0; i