fixed position for "new system" according to current mouse cursor position
This commit is contained in:
@@ -54,7 +54,7 @@ define([
|
||||
duration: animationInDuration,
|
||||
complete: function(){
|
||||
// set context menu "click" observer
|
||||
$(this).off('click').one('click', {component: component, position:{x: getLeftLocation(originalEvent), y: getTopLocation(originalEvent)}}, function (e) {
|
||||
$(this).off('click').one('click', {component: component, position:{x: originalEvent.offsetX, y: originalEvent.offsetY}}, function (e) {
|
||||
// hide contextmenu
|
||||
$(this).hide();
|
||||
|
||||
@@ -64,7 +64,6 @@ define([
|
||||
position: e.data.position
|
||||
};
|
||||
|
||||
|
||||
settings.menuSelected.call(this, params);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user