From 2c3b387e4231452fb54eb584d7d13d9295933556 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Wed, 28 Sep 2016 13:00:32 -0400 Subject: [PATCH 1/6] Update index.js --- frontend/src/Metamaps/Map/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/frontend/src/Metamaps/Map/index.js b/frontend/src/Metamaps/Map/index.js index 24ea08ea..ce277331 100644 --- a/frontend/src/Metamaps/Map/index.js +++ b/frontend/src/Metamaps/Map/index.js @@ -38,11 +38,6 @@ const Map = { init: function () { var self = Map - // prevent right clicks on the main canvas, so as to not get in the way of our right clicks - $('#wrapper').on('contextmenu', function (e) { - return false - }) - $('.starMap').click(function () { if ($(this).is('.starred')) self.unstar() else self.star() From 10a2782f8553e1fad14f9686b1e7e0d3e3b5bba7 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Wed, 28 Sep 2016 13:03:44 -0400 Subject: [PATCH 2/6] Update JIT.js --- frontend/src/Metamaps/JIT.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/Metamaps/JIT.js b/frontend/src/Metamaps/JIT.js index 4a665bdc..54ec74b1 100644 --- a/frontend/src/Metamaps/JIT.js +++ b/frontend/src/Metamaps/JIT.js @@ -1305,6 +1305,9 @@ const JIT = { // create new menu for clicked on node var rightclickmenu = document.createElement('div') rightclickmenu.className = 'rightclickmenu' + //prevent the custom context menu from immediately opening the default context menu as well + rightclickmenu.setAttribute('oncontextmenu','return false') + // add the proper options to the menu var menustring = '