Enable context menu on mouse down with no shift pressed
This commit is contained in:
parent
d52424087b
commit
ad0e829fc7
1 changed files with 1 additions and 2 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue