mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-01 23:36:00 +00:00
Fix context menu for some cases.
This commit is contained in:
parent
4186c8f323
commit
18eac65c92
@ -271,7 +271,7 @@ BaseHandler.prototype.addContextMenu = function()
|
||||
});
|
||||
|
||||
$("body").on("contextmenu", "canvas", function(e) {
|
||||
handler.contextMenuPoint = {x: e.offsetX, y: e.offsetY};
|
||||
handler.contextMenuPoint = handler.app.getMousePos(handler.app.canvas, e);
|
||||
handler.contextMenuObject = handler.GetSelectedObject(handler.contextMenuPoint);
|
||||
if (handler.contextMenuObject instanceof BaseVertex) {
|
||||
$("#edgeContextMenu").hide();
|
||||
|
Loading…
x
Reference in New Issue
Block a user