fixed position for "new system" according to current mouse cursor position

This commit is contained in:
Exodus4D
2015-11-14 18:38:45 +01:00
parent dd219b9023
commit 92c3bedd63

View File

@@ -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);
});
}