From: Tom Hughes Date: Tue, 21 Feb 2017 09:16:38 +0000 (+0000) Subject: Enable context menu on mouse down with no shift pressed X-Git-Tag: live~4577 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/ad0e829fc7711761ffc65d50b119a14757bba220?ds=sidebyside;hp=-c Enable context menu on mouse down with no shift pressed --- ad0e829fc7711761ffc65d50b119a14757bba220 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 () {