mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-05 10:51:35 +00:00
Remove unused string
Don't show preset browser when adding a favorite point Don't automatically open the sidebar when selecting a non-new feature
This commit is contained in:
@@ -36,7 +36,7 @@ export function modeAddPoint(context, customMode) {
|
||||
);
|
||||
|
||||
context.enter(
|
||||
modeSelect(context, [node.id]).newFeature(true)
|
||||
modeSelect(context, [node.id]).newFeature(!mode.preset)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ export function modeAddPoint(context, customMode) {
|
||||
);
|
||||
|
||||
context.enter(
|
||||
modeSelect(context, [node.id]).newFeature(true)
|
||||
modeSelect(context, [node.id]).newFeature(!mode.preset)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -215,8 +215,10 @@ export function uiSidebar(context) {
|
||||
var entity = context.entity(id);
|
||||
// uncollapse the sidebar
|
||||
if (selection.classed('collapsed')) {
|
||||
var extent = entity.extent(context.graph());
|
||||
sidebar.expand(sidebar.intersects(extent));
|
||||
if (newFeature) {
|
||||
var extent = entity.extent(context.graph());
|
||||
sidebar.expand(sidebar.intersects(extent));
|
||||
}
|
||||
}
|
||||
|
||||
featureListWrap
|
||||
|
||||
Reference in New Issue
Block a user