From 40b7e95b686c985bae009d14b1a6891971c39ed9 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Wed, 28 Sep 2016 04:35:41 -0400 Subject: [PATCH] Update index.js Prevents the default chrome context menu from appearing overtop the Metamaps context menu --- frontend/src/Metamaps/Map/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Metamaps/Map/index.js b/frontend/src/Metamaps/Map/index.js index 944a387b..29cb940b 100644 --- a/frontend/src/Metamaps/Map/index.js +++ b/frontend/src/Metamaps/Map/index.js @@ -39,7 +39,7 @@ const Map = { var self = Map // prevent right clicks on the main canvas, so as to not get in the way of our right clicks - $('#center-container').bind('contextmenu', function (e) { + $('#wrapper').on('contextmenu', function (e) { return false })