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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user