Avoid context menu for long tap when editing on mobile

This commit is contained in:
Andreas Hocevar
2018-01-14 23:11:43 +01:00
parent fa75b78bf9
commit 6bb88026ea
4 changed files with 10 additions and 5 deletions
-5
View File
@@ -71,9 +71,4 @@ typeSelect.onchange = function() {
addInteractions();
};
// Avoid context menu for long taps when editing on mobile
map.getTargetElement().oncontextmenu = function(e) {
e.preventDefault();
};
addInteractions();