From d9d9b50918f2a0ed15c236f7bcd6357590bf0774 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Fri, 3 Jul 2009 05:38:06 +0000 Subject: [PATCH] Fix Firefox 2- behavior with dragging git-svn-id: http://svg-edit.googlecode.com/svn/trunk@260 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index fb1a7b0e..91d92f64 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -575,6 +575,10 @@ function SvgCanvas(c) var changes = {}; + // This fixes Firefox 2- behavior - for whatever reason, simply removing the transform + // attribute was not having the proper effect on the element, so we set it to a null + // transform, then remove the attribute + selected.setAttribute("transform", "translate(0,0)"); selected.removeAttribute("transform"); switch (selected.tagName) {