Fixed multi-select rectangle on zoom
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@623 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
5636cd3f73
commit
68716b04a7
|
@ -653,6 +653,9 @@ function BatchCommand(text) {
|
|||
resultList = [];
|
||||
|
||||
var rubberBBox = rubberBox.getBBox();
|
||||
$.each(rubberBBox, function(key, val) {
|
||||
rubberBBox[key] = val / current_zoom;
|
||||
});
|
||||
var i = curBBoxes.length;
|
||||
while (i--) {
|
||||
if (Utils.rectsIntersect(rubberBBox, curBBoxes[i].bbox)) {
|
||||
|
@ -1376,6 +1379,8 @@ function BatchCommand(text) {
|
|||
if (rubberBox == null) {
|
||||
rubberBox = selectorManager.getRubberBandBox();
|
||||
}
|
||||
start_x *= current_zoom;
|
||||
start_y *= current_zoom;
|
||||
assignAttributes(rubberBox, {
|
||||
'x': start_x,
|
||||
'y': start_y,
|
||||
|
@ -1637,6 +1642,8 @@ function BatchCommand(text) {
|
|||
}
|
||||
break;
|
||||
case "multiselect":
|
||||
x *= current_zoom;
|
||||
y *= current_zoom;
|
||||
assignAttributes(rubberBox, {
|
||||
'x': Math.min(start_x,x),
|
||||
'y': Math.min(start_y,y),
|
||||
|
|
Loading…
Reference in New Issue