Merge remote-tracking branch 'upstream/pull/2726'

This commit is contained in:
Tom Hughes 2020-07-22 16:48:53 +01:00
commit 86428201dd
11 changed files with 30 additions and 21 deletions

View file

@ -54819,6 +54819,8 @@
var loc = extent.center();
context.map().centerEase(loc);
// we could enter the mode multiple times, so reset follow for next time
_follow = false;
}
@ -89867,7 +89869,7 @@
_base = context.graph();
_coalesceChanges = false;
loadActivePresets();
loadActivePresets(true);
return entityEditor
.modified(false);
@ -89881,7 +89883,7 @@
};
function loadActivePresets() {
function loadActivePresets(isForNewSelection) {
var graph = context.graph();
@ -89903,11 +89905,14 @@
return _mainPresetIndex.item(pID);
});
// A "weak" preset doesn't set any tags. (e.g. "Address")
var weakPreset = _activePresets.length === 1 &&
Object.keys(_activePresets[0].addTags || {}).length === 0;
// Don't replace a weak preset with a fallback preset (e.g. "Point")
if (weakPreset && matches.length === 1 && matches[0].isFallback()) { return; }
if (!isForNewSelection) {
// A "weak" preset doesn't set any tags. (e.g. "Address")
var weakPreset = _activePresets.length === 1 &&
!_activePresets[0].isFallback() &&
Object.keys(_activePresets[0].addTags || {}).length === 0;
// Don't replace a weak preset with a fallback preset (e.g. "Point")
if (weakPreset && matches.length === 1 && matches[0].isFallback()) { return; }
}
entityEditor.presets(matches);
}
@ -117386,10 +117391,14 @@
// some targets have default click events we don't want to override
var isOkayTarget = event.composedPath().some(function(node) {
// clicking <label> affects its <input> by default
return node.nodeName === 'LABEL' ||
// we only care about element nodes
return node.nodeType === 1 &&
// clicking <input> focuses it and/or changes a value
(node.nodeName === 'INPUT' ||
// clicking <label> affects its <input> by default
node.nodeName === 'LABEL' ||
// clicking <a> opens a hyperlink by default
node.nodeName === 'A';
node.nodeName === 'A');
});
if (isOkayTarget) { return; }
@ -117982,7 +117991,7 @@
var context = utilRebind({}, dispatch$1, 'on');
var _deferred = new Set();
context.version = '2.18.2';
context.version = '2.18.3';
context.privacyVersion = '20200407';
// iD will alter the hash so cache the parameters intended to setup the session

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long