mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-07 03:41:33 +00:00
Now background, map_data, help stay open when user clicks on map surface
There is really no need to hide these, and the user might just want to keep the pane open (e.g. viewing help) while they do stuff.
This commit is contained in:
@@ -568,9 +568,6 @@ export function uiBackground(context) {
|
||||
|
||||
d3_select(document)
|
||||
.call(keybinding);
|
||||
|
||||
context.surface().on('mousedown.background-outside', hide);
|
||||
context.container().on('mousedown.background-outside', hide);
|
||||
}
|
||||
|
||||
return background;
|
||||
|
||||
@@ -439,9 +439,6 @@ export function uiHelp(context) {
|
||||
|
||||
d3_select(document)
|
||||
.call(keybinding);
|
||||
|
||||
context.surface().on('mousedown.help-outside', hide);
|
||||
context.container().on('mousedown.help-outside', hide);
|
||||
}
|
||||
|
||||
return help;
|
||||
|
||||
@@ -492,11 +492,7 @@ export function uiMapData(context) {
|
||||
|
||||
d3_select(document)
|
||||
.call(keybinding);
|
||||
|
||||
context.surface().on('mousedown.map_data-outside', hidePanel);
|
||||
context.container().on('mousedown.map_data-outside', hidePanel);
|
||||
}
|
||||
|
||||
|
||||
return map_data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user