Clicking a midpoint should be treated as a click on the parent way

This commit is contained in:
Bryan Housel
2017-04-14 00:38:04 -04:00
parent 0920f29c75
commit 8989aea023

View File

@@ -75,9 +75,10 @@ export function behaviorSelect(context) {
if (datum && datum.type === 'midpoint') {
// do nothing..
datum = datum.parents[0];
}
} else if (!(datum instanceof osmEntity)) {
if (!(datum instanceof osmEntity)) {
// clicked nothing..
if (!isMultiselect && mode.id !== 'browse') {
context.enter(modeBrowse(context));