Long press allows modification of current vertex

This commit is contained in:
Andreas Hocevar
2018-01-14 18:41:26 +01:00
parent fbf951f005
commit 2a64990a71
2 changed files with 28 additions and 3 deletions
+5
View File
@@ -71,4 +71,9 @@ typeSelect.onchange = function() {
addInteractions();
};
// Avoid context menu for long taps when editing on mobile
map.getTargetElement().oncontextmenu = function(e) {
e.preventDefault();
};
addInteractions();