Fixed bug where selection box wasn't shown on node-selectio
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1815 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
798704a715
commit
1ff4caa1c6
|
@ -1643,7 +1643,7 @@ var SelectorManager;
|
||||||
// Function: SelectorManager.getRubberBandBox
|
// Function: SelectorManager.getRubberBandBox
|
||||||
// Returns the rubberBandBox DOM element. This is the rectangle drawn by the user for selecting/zooming
|
// Returns the rubberBandBox DOM element. This is the rectangle drawn by the user for selecting/zooming
|
||||||
this.getRubberBandBox = function() {
|
this.getRubberBandBox = function() {
|
||||||
if (this.rubberBandBox == null) {
|
if (!this.rubberBandBox) {
|
||||||
this.rubberBandBox = this.selectorParentGroup.appendChild(
|
this.rubberBandBox = this.selectorParentGroup.appendChild(
|
||||||
addSvgElementFromJson({ "element": "rect",
|
addSvgElementFromJson({ "element": "rect",
|
||||||
"attr": {
|
"attr": {
|
||||||
|
@ -5193,15 +5193,16 @@ var getMouseTarget = this.getMouseTarget = function(evt) {
|
||||||
x=xya.x; y=xya.y;
|
x=xya.x; y=xya.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rubberBox && rubberBox.getAttribute('display') != 'none') {
|
if(rubberBox && rubberBox.getAttribute('display') !== 'none') {
|
||||||
|
real_x *= current_zoom;
|
||||||
|
real_y *= current_zoom;
|
||||||
assignAttributes(rubberBox, {
|
assignAttributes(rubberBox, {
|
||||||
'x': Math.min(r_start_x, real_x),
|
'x': Math.min(r_start_x*current_zoom, real_x),
|
||||||
'y': Math.min(r_start_y, real_y),
|
'y': Math.min(r_start_y*current_zoom, real_y),
|
||||||
'width': Math.abs(real_x - r_start_x),
|
'width': Math.abs(real_x - r_start_x*current_zoom),
|
||||||
'height': Math.abs(real_y - r_start_y)
|
'height': Math.abs(real_y - r_start_y*current_zoom)
|
||||||
},100);
|
},100);
|
||||||
}
|
}
|
||||||
|
|
||||||
pathActions.mouseMove(x, y);
|
pathActions.mouseMove(x, y);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue