Fix bug in Layers: Moving layers around did not properly update the pointer-events

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@679 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2009-09-22 18:10:54 +00:00
parent 920a5df480
commit 7a4d09d6dd
3 changed files with 24 additions and 27 deletions

View File

@@ -1174,6 +1174,11 @@ function svg_edit_setup() {
var option = $(this);
option.attr("selected", "selected");
svgCanvas.setCurrentLayer(option.attr("value"));
}).click(function(evt) {
var container = document.getElementById("layerlist");
var mouse_x = evt.pageX - container.boxObject.x;
var mouse_y = evt.pageY - container.boxObject.y;
// mouse_x, mouse_y contain the relative x,y position of the click
});
};
populateLayers();