From ad0e829fc7711761ffc65d50b119a14757bba220 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 21 Feb 2017 09:16:38 +0000 Subject: [PATCH] Enable context menu on mouse down with no shift pressed --- app/assets/javascripts/index/contextmenu.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/index/contextmenu.js b/app/assets/javascripts/index/contextmenu.js index b19c5d34f..148ccf908 100644 --- a/app/assets/javascripts/index/contextmenu.js +++ b/app/assets/javascripts/index/contextmenu.js @@ -72,8 +72,7 @@ OSM.initializeContextMenu = function (map) { map.on("mousedown", function (e) { if (e.originalEvent.shiftKey) map.contextmenu.disable(); - }).on("mouseup", function () { - map.contextmenu.enable(); + else map.contextmenu.enable(); }); var updateMenu = function updateMenu () { -- 2.39.5