mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-02 15:56:27 +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) {
|
$("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);
|
handler.contextMenuObject = handler.GetSelectedObject(handler.contextMenuPoint);
|
||||||
if (handler.contextMenuObject instanceof BaseVertex) {
|
if (handler.contextMenuObject instanceof BaseVertex) {
|
||||||
$("#edgeContextMenu").hide();
|
$("#edgeContextMenu").hide();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user