Fixed issue 226 and issue 393, allowing the cloning and merging of layers

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1672 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2010-08-19 18:30:19 +00:00
parent 3130f85ac6
commit 8345aa43d1
6 changed files with 200 additions and 50 deletions

View File

@@ -36,7 +36,7 @@ if(jQuery)( function() {
$(this).mouseup( function(e) {
var srcElement = $(this);
$(this).unbind('mouseup');
if( evt.button == 2 ) {
if( evt.button == 2 || o.allowLeft) {
e.stopPropagation();
// Hide context menus that may be showing
$(".contextMenu").hide();
@@ -51,8 +51,8 @@ if(jQuery)( function() {
var x_off = $(window).width() - menu.width(),
y_off = $(window).height() - menu.height();
if(x > x_off) x = x_off-5;
if(y > y_off) y = y_off-5;
if(x > x_off) x = x_off-15;
if(y > y_off) y = y_off-15;
// Show the menu
$(document).unbind('click');