mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-13 04:44:50 +02:00
don't de-select map feature when clicking on a street level photo
This commit is contained in:
@@ -215,6 +215,11 @@ export function behaviorSelect(context) {
|
||||
}
|
||||
|
||||
var targetDatum = lastEvent.target.__data__;
|
||||
if (targetDatum === 0 && lastEvent.target.parentNode.__data__) {
|
||||
// some targets (like markers of the street level photo
|
||||
// layers) have the data bound to the parent node
|
||||
targetDatum = lastEvent.target.parentNode.__data__;
|
||||
}
|
||||
|
||||
var multiselectEntityId;
|
||||
|
||||
@@ -350,6 +355,9 @@ export function behaviorSelect(context) {
|
||||
.selectedErrorID(datum.id)
|
||||
.enter(modeSelectError(context, datum.id, datum.service));
|
||||
|
||||
} else if (datum.service === 'photo') {
|
||||
// street level photo was selected:
|
||||
// don't change mode and selection
|
||||
} else {
|
||||
// targeting nothing
|
||||
context.selectedNoteID(null);
|
||||
|
||||
Reference in New Issue
Block a user