mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Prevent opening edit menu in wide selection
This commit is contained in:
@@ -176,6 +176,10 @@ export function modeSelect(context, selectedIDs) {
|
||||
function showMenu() {
|
||||
closeMenu();
|
||||
if (editMenu) {
|
||||
|
||||
// disabled menu if in wide selection, for example
|
||||
if (!context.map().editableDataEnabled()) return;
|
||||
|
||||
context.surface().call(editMenu);
|
||||
}
|
||||
}
|
||||
@@ -354,7 +358,7 @@ export function modeSelect(context, selectedIDs) {
|
||||
|
||||
function dblclick() {
|
||||
if (!context.map().withinEditableZoom()) return;
|
||||
|
||||
|
||||
var target = d3_select(d3_event.target);
|
||||
|
||||
var datum = target.datum();
|
||||
|
||||
Reference in New Issue
Block a user