From cec4f4796272dd4c6d96a9de2e3264afeea77447 Mon Sep 17 00:00:00 2001 From: Roland Tapken Date: Wed, 17 Jul 2013 10:51:20 +0200 Subject: [PATCH] Fixed issue #676: Image disappears when dragging mouse out of the window --- raphael.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raphael.core.js b/raphael.core.js index 92680218..32b49d26 100644 --- a/raphael.core.js +++ b/raphael.core.js @@ -3526,7 +3526,7 @@ var paper = this, svg = paper.canvas, target = g.doc.elementFromPoint(x, y); - if (g.win.opera && target.tagName == "svg") { + if (g.win.opera && target && target.tagName == "svg") { var so = getOffset(svg), sr = svg.createSVGRect(); sr.x = x - so.x;