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-75d572ba1dddmaster
parent
4a2141fd8a
commit
1f48bbcedf
|
@ -3109,7 +3109,7 @@ function BatchCommand(text) {
|
||||||
layernames.push(name);
|
layernames.push(name);
|
||||||
all_layers.push( [name,child] );
|
all_layers.push( [name,child] );
|
||||||
current_layer = 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
|
// if group did not have a name, it is an orphan
|
||||||
else {
|
else {
|
||||||
|
@ -3132,7 +3132,7 @@ function BatchCommand(text) {
|
||||||
layer_title.textContent = newname;
|
layer_title.textContent = newname;
|
||||||
current_layer.appendChild(layer_title);
|
current_layer.appendChild(layer_title);
|
||||||
for (var j = 0; j < orphans.length; ++j) {
|
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.appendChild(orphans[j]);
|
||||||
}
|
}
|
||||||
current_layer = svgzoom.appendChild(current_layer);
|
current_layer = svgzoom.appendChild(current_layer);
|
||||||
|
|
Loading…
Reference in New Issue