From 67c4912c62bb08b3d317a7b87efc34fa47e49988 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Wed, 28 Sep 2016 13:37:08 -0400 Subject: [PATCH] Update index.js --- frontend/src/Metamaps/Map/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/Metamaps/Map/index.js b/frontend/src/Metamaps/Map/index.js index ce277331..24ea08ea 100644 --- a/frontend/src/Metamaps/Map/index.js +++ b/frontend/src/Metamaps/Map/index.js @@ -38,6 +38,11 @@ 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()