Merge pull request #56 from StalderT/patch-2

Update svgcanvas.js
master
Jeff Schiller 2016-01-16 11:45:29 -08:00
commit f47eb1a9a6
1 changed files with 6 additions and 0 deletions

View File

@ -549,6 +549,12 @@ var getIntersectionList = this.getIntersectionList = function(rect) {
var rubberBBox;
if (!rect) {
rubberBBox = rubberBox.getBBox();
var o, bb = {};
for (o in rubberBBox) {
bb[o] = rubberBBox[o] / current_zoom;
}
rubberBBox = bb;
} else {
rubberBBox = svgcontent.createSVGRect(rect.x, rect.y, rect.width, rect.height);
}