From ae533338a1eba7a3657054826e40537c000fc20e Mon Sep 17 00:00:00 2001 From: StalderT Date: Sat, 16 Jan 2016 19:42:15 +0100 Subject: [PATCH] Update svgcanvas.js correct https://github.com/SVG-Edit/svgedit/issues/54 --- editor/svgcanvas.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 765362b6..eb026299 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -554,12 +554,14 @@ var getIntersectionList = this.getIntersectionList = function(rect) { } var resultList = null; - if (typeof(svgroot.getIntersectionList) == 'function') { - // Offset the bbox of the rubber box by the offset of the svgcontent element. - rubberBBox.x += parseInt(svgcontent.getAttribute('x'), 10); - rubberBBox.y += parseInt(svgcontent.getAttribute('y'), 10); + if (!svgedit.browser.isIE) { + if (typeof(svgroot.getIntersectionList) == 'function') { + // Offset the bbox of the rubber box by the offset of the svgcontent element. + rubberBBox.x += parseInt(svgcontent.getAttribute('x'), 10); + rubberBBox.y += parseInt(svgcontent.getAttribute('y'), 10); - resultList = svgroot.getIntersectionList(rubberBBox, parent); + resultList = svgroot.getIntersectionList(rubberBBox, parent); + } } if (resultList == null || typeof(resultList.item) != 'function') {