From 1f48bbcedf79c9bd263dca23c3069bdac8325356 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Sun, 11 Oct 2009 07:35:21 +0000 Subject: [PATCH] Fix Issue 270: element selectable again. Remove setting of pointer-events to 'none' on all children as they all inherit now from the layer git-svn-id: http://svg-edit.googlecode.com/svn/trunk@799 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 3bf0a3f1..f0f9e0da 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -3109,7 +3109,7 @@ function BatchCommand(text) { layernames.push(name); all_layers.push( [name,child] ); current_layer = child; - walkTree(child, function(e){e.setAttribute("style", "pointer-events:none");}); +// walkTree(child, function(e){e.setAttribute("style", "pointer-events:none");}); } // if group did not have a name, it is an orphan else { @@ -3132,7 +3132,7 @@ function BatchCommand(text) { layer_title.textContent = newname; current_layer.appendChild(layer_title); for (var j = 0; j < orphans.length; ++j) { - walkTree(orphans[j], function(e){e.setAttribute("style", "pointer-events:none");}); +// walkTree(orphans[j], function(e){e.setAttribute("style", "pointer-events:none");}); current_layer.appendChild(orphans[j]); } current_layer = svgzoom.appendChild(current_layer);