You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
does not pass the location the mouse event occurred at.
This would be useful for working with context menu for a CANVAS element where the context menu to be displayed depends on what the mouse is pointing at.
Changing line 205 from:
$.extend(true, e.data, defaults, e.data.build($currentTrigger) || {});
The option 'build'
{selector: ".awesome-menu",
build: function($trigger){
return {
callback: function(){},
items: {
foo: {name: "Foo"}
}
};
}};
does not pass the location the mouse event occurred at.
This would be useful for working with context menu for a CANVAS element where the context menu to be displayed depends on what the mouse is pointing at.
Changing line 205 from:
$.extend(true, e.data, defaults, e.data.build($currentTrigger) || {});
to:
$.extend(true, e.data, defaults, e.data.build($currentTrigger, { pageX: e.pageX, pageY: e.pageY }) || {});
Adds support for passing the location to the build function.
The text was updated successfully, but these errors were encountered: